core_lib
Class Globals

java.lang.Object
  extended by core_lib.Globals

public class Globals
extends java.lang.Object

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

NUM_USERS

public final int NUM_USERS
Number of users/peers/nodes in a Network.


NUM_FILES

public final int NUM_FILES
Number of files (not copies) in a Network.


NUM_TRANS

public final int NUM_TRANS
Number of transactions to be simulated.


ZIPF

public final double ZIPF
Zipf constant controlling file popularity and demand


PRE_TRUSTED

public final int PRE_TRUSTED
Number of pre-trusted users, a subset of 'good' users


USR_GOOD

public final int USR_GOOD
Number of 'well-behaved'/'good' users


USR_PURE

public final int USR_PURE
Number of 'purely malicious' users


USR_FEED

public final int USR_FEED
Number of 'feedback malicious' users


USR_PROV

public final int USR_PROV
Number of 'malicious provider' users


USR_DISG

public final int USR_DISG
Number of 'disguised malicious' users


USR_SYBL

public final int USR_SYBL
Number of 'Sybil attack' users


BAND_MAX

public final int BAND_MAX
Number of maximum simultaneous upload/download connections per user.


BAND_PER

public final int BAND_PER
Number of time units (cycles) each upload/download requires


WARMUP

public final int WARMUP
Number of warm-up transactions before statistical tabulation begins


SMART_GEN

public final boolean SMART_GEN
Whether or not intelligent transaction generation should be used.


RAND_SEED

public final long RAND_SEED
Seed that initialized the 'this.RAND' Random object herein


RAND

public final java.util.Random RAND
A Random object seeded by this.RAND_SEED.

Constructor Detail

Globals

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)
Construct a Globals object by providing all field values.

Parameters:
NUM_USERS - Number of users in Network
NUM_FILES - Number of files in Network
NUM_TRANS - Number of transactions to simulate
ZIPF - Zipf constant controlling file popularity
PRE_TRUSTED - Number of pre-trusted users, a subset of 'good' users
USR_GOOD - Number of 'good' users
USR_PURE - Number of 'purely malicious' users
USR_FEED - Number of 'feedback malicious' users
USR_PROV - Number of 'malicious provider' users
USR_DISG - Number of 'disguised malicious' users
USR_SYBL - Number of 'Sybil attack' users
BAND_MAX - Maximum number of connections per user
BAND_PER - Number of time units (cycles) a transaction requires
WARMUP - Number of warm-up instructions to simulate
SMART_GEN - Use intelligent transaction generation?