ProtocolData(String prefix) { pid = CommonState.getPid(); lid = Configuration.getPid(prefix + "." + PAR_LINKABLE); tid = Configuration.getPid(prefix + "." + PAR_TRANSPORT); period = Configuration.getInt(prefix + "." + PAR_PERIOD); prob = Configuration.getDouble(prefix + "." + PAR_PROB); }
public RenaterInitializer(String prefix) { pid = Configuration.getPid(prefix + "." + PAR_PROT); phid = FastConfig.getLinkable(pid); cpid = Configuration.getPid(prefix + "." + PAR_CHORD_PROT); nrDC = Configuration.getInt("NR_DC", 1); nrNodePerDC = Configuration.getInt("NR_NODE_PER_DC", 1); dc_file = (Configuration.getString(prefix + "." + PAR_DC_FILE, "nofilewiththisname")); distance = (Configuration.getDouble(prefix + "." + PAR_DC_DISTANCE, 0.01)); }
public HelloWorld(String prefix) { this.prefix = prefix; // initialisation des identifiants a partir du fichier de configuration this.transportPid = Configuration.getPid(prefix + ".transport"); this.mypid = Configuration.getPid(prefix + ".myself"); this.ping_timeout = Configuration.getLong(prefix + ".ping_timeout"); this.ping_frequency = Configuration.getLong(prefix + ".ping_frequency"); this.transport = null; this.state = 0; this.last_pong = new long[Network.size()]; this.nodes_alive = new boolean[Network.size()]; for (int i = 0; i < Network.size(); i++) { nodes_alive[i] = true; } }
public PopulateVirtualWorld(String prefix) { distribution = Configuration.getInt(prefix + "." + PAR_DISTRIB); applicativeLayerId = Configuration.getPid(prefix + "." + APPLICATIVE_LAYER); Globals.mapSize = Configuration.getLong(prefix + "." + MAP_SIZE); Globals.zoneSize = Configuration.getLong(prefix + "." + ZONE_SIZE); Globals.zoneNb = Configuration.getInt(prefix + "." + ZONE_NB); Globals.outOfZoneNb = Configuration.getInt(prefix + "." + OUT_OF_ZONE_NB); Globals.wSpeed = Configuration.getInt(prefix + "." + WSPEED); Globals.tSpeed = Configuration.getInt(prefix + "." + TSPEED); Globals.smallZoneSize = Configuration.getInt(prefix + "." + SMALL_ZONE_SIZE); Globals.smallZoneNb = Configuration.getInt(prefix + "." + SMALL_ZONE_NB); Globals.haltedToHalted = Configuration.getInt(prefix + "." + HTH); Globals.haltedToTravelling = Configuration.getInt(prefix + "." + HTT); Globals.haltedToWandering = Configuration.getInt(prefix + "." + HTW); Globals.travellingToTravelling = Configuration.getInt(prefix + "." + TTT); Globals.travellingToHalted = Configuration.getInt(prefix + "." + TTH); Globals.travellingToWandering = Configuration.getInt(prefix + "." + TTW); Globals.wanderingToWandering = Configuration.getInt(prefix + "." + WTW); Globals.wanderingToTravelling = Configuration.getInt(prefix + "." + WTT); Globals.wanderingToHalted = Configuration.getInt(prefix + "." + WTH); Globals.changeWanderingDirection = Configuration.getInt(prefix + "." + CWD); Globals.quiet = Configuration.getBoolean(prefix + "." + QUIET); }
public JungGraphObserver(String name) { this.name = name; this.hyphadataPid = Configuration.getPid(PAR_HYPHADATA_PROTO); this.hyphalinkPid = Configuration.getPid(PAR_HYPHALINK_PROTO); this.mycocastPid = Configuration.getPid(PAR_MYCOCAST_PROTO); this.period = Configuration.getInt(name + "." + PAR_PERIOD); this.walkDelay = Configuration.getInt(name + "." + PAR_WALK_DELAY); mainThread = Thread.currentThread(); this.changeListeners = new HashSet<ChangeListener>(); visualizer = null; // HyphaData.addHyphaDataListener(this); // HyphaLink.addHyphaLinkListener(this); }
public TrafficGene(String prefix) { pid = Configuration.getPid(prefix + "." + PAR_PROT); numReqPerClient = Configuration.getInt(prefix + "." + PAR_NUMREQPERCLIENT); startupFilePath = Configuration.getString(prefix + "." + PAR_STARTUPFILEPATH); reqArrivalInterval = Configuration.getLong(prefix + "." + PAR_REQARRIVALINTERVAL); localTransTime = Configuration.getLong(prefix + "." + PAR_LOCALTRANSTIME); Library.policy = Configuration.getString(prefix + "." + PAR_POLICY); }
public OrangeNodeInit(String prefix) { pid = Configuration.getPid(prefix + "." + PAR_PROT); category = Configuration.getInt(prefix + "." + PAR_CATEGORY); maxVideoSize = Configuration.getInt(prefix + "." + PAR_MINVIDEOSIZE); rangeVideoSize = Configuration.getInt(prefix + "." + PAR_RANGEVIDEOSIZE); maxUpSpeed = Configuration.getInt(prefix + "." + PAR_UPSPEED); minDlSpeed = Configuration.getInt(prefix + "." + PAR_MINDLSPEED); maxDlSpeed = Configuration.getInt(prefix + "." + PAR_MAXDLSPEED); }
/** * Standard constructor that reads the configuration parameters. Invoked by the simulation engine. * * @param prefix the configuration prefix for this class. */ public InetObserver(String prefix) { super(prefix); coordPid = Configuration.getPid(prefix + "." + PAR_COORDINATES_PROT); graph_filename = Configuration.getString(prefix + "." + PAR_FILENAME_BASE, "graph_dump"); fng = new FileNameGenerator(graph_filename, ".dat"); }
public ControlerNw(String prefix) { this.prefix = prefix; pid = Configuration.getPid(prefix + "." + PAR_PROTOCOL); }
public ChordInitializer(String prefix) { pid = Configuration.getPid(prefix + "." + PAR_PROT); }
/** Creates a new observer and initializes the configuration parameter. */ public DummyObserver(String name) { this.name = name; pid = Configuration.getPid(name + "." + PAR_PROTID); }
public TrafficGene(String prefix) { pid = Configuration.getPid(prefix + "." + PAR_PROT); idLength = Configuration.getInt(prefix + "." + PAR_IDLENGTH); }
/** * The basic constructor of the class, which reads the parameters from the configuration file. * * @param prefix the configuration prefix for this class */ public NodeInitializer(String prefix) { pid = Configuration.getPid(prefix + "." + PAR_PROT); newerDistr = Configuration.getInt(prefix + "." + PAR_NEWER_DISTR); seederDistr = Configuration.getInt(prefix + "." + PAR_SEEDER_DISTR); }
/** Reads configuration parameters, using the specified prefix. */ public FingerObserver(String prefix) { pid = Configuration.getPid(prefix + "." + PAR_PROT); hid = Configuration.getPid(prefix + "." + PAR_HOLDER, pid); this.prefix = prefix; }