|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcore_lib.Globals
public class Globals
The Globals class provides a wrapper for common Network parameters. All fields are given public access. This class was created to minimize constructor size for objects throughout the simulator framework.
Field Summary | |
---|---|
int |
BAND_MAX
Number of maximum simultaneous upload/download connections per user. |
int |
BAND_PER
Number of time units (cycles) each upload/download requires |
int |
NUM_FILES
Number of files (not copies) in a Network. |
int |
NUM_TRANS
Number of transactions to be simulated. |
int |
NUM_USERS
Number of users/peers/nodes in a Network. |
int |
PRE_TRUSTED
Number of pre-trusted users, a subset of 'good' users |
java.util.Random |
RAND
A Random object seeded by this.RAND_SEED. |
long |
RAND_SEED
Seed that initialized the 'this.RAND' Random object herein |
boolean |
SMART_GEN
Whether or not intelligent transaction generation should be used. |
int |
USR_DISG
Number of 'disguised malicious' users |
int |
USR_FEED
Number of 'feedback malicious' users |
int |
USR_GOOD
Number of 'well-behaved'/'good' users |
int |
USR_PROV
Number of 'malicious provider' users |
int |
USR_PURE
Number of 'purely malicious' users |
int |
USR_SYBL
Number of 'Sybil attack' users |
int |
WARMUP
Number of warm-up transactions before statistical tabulation begins |
double |
ZIPF
Zipf constant controlling file popularity and demand |
Constructor Summary | |
---|---|
Globals(int NUM_USERS,
int NUM_FILES,
int NUM_TRANS,
double ZIPF,
int PRE_TRUSTED,
int USR_GOOD,
int USR_PURE,
int USR_FEED,
int USR_PROV,
int USR_DISG,
int USR_SYBL,
int BAND_MAX,
int BAND_PER,
int WARMUP,
boolean SMART_GEN)
Construct a Globals object by providing all field values. |
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final int NUM_USERS
public final int NUM_FILES
public final int NUM_TRANS
public final double ZIPF
public final int PRE_TRUSTED
public final int USR_GOOD
public final int USR_PURE
public final int USR_FEED
public final int USR_PROV
public final int USR_DISG
public final int USR_SYBL
public final int BAND_MAX
public final int BAND_PER
public final int WARMUP
public final boolean SMART_GEN
public final long RAND_SEED
public final java.util.Random RAND
Constructor Detail |
---|
public Globals(int NUM_USERS, int NUM_FILES, int NUM_TRANS, double ZIPF, int PRE_TRUSTED, int USR_GOOD, int USR_PURE, int USR_FEED, int USR_PROV, int USR_DISG, int USR_SYBL, int BAND_MAX, int BAND_PER, int WARMUP, boolean SMART_GEN)
NUM_USERS
- Number of users in NetworkNUM_FILES
- Number of files in NetworkNUM_TRANS
- Number of transactions to simulateZIPF
- Zipf constant controlling file popularityPRE_TRUSTED
- Number of pre-trusted users, a subset of 'good' usersUSR_GOOD
- Number of 'good' usersUSR_PURE
- Number of 'purely malicious' usersUSR_FEED
- Number of 'feedback malicious' usersUSR_PROV
- Number of 'malicious provider' usersUSR_DISG
- Number of 'disguised malicious' usersUSR_SYBL
- Number of 'Sybil attack' usersBAND_MAX
- Maximum number of connections per userBAND_PER
- Number of time units (cycles) a transaction requiresWARMUP
- Number of warm-up instructions to simulateSMART_GEN
- Use intelligent transaction generation?
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |