Exemple #1
0
 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);
 }
Exemple #2
0
 private EDMongering(ProtocolData p) {
   this.p = p;
   node = CommonState.getNode();
   status = SUSCEPTIBLE;
 }
Exemple #3
0
 public EDMongering(String prefix) {
   p = new ProtocolData(prefix);
   node = CommonState.getNode();
   status = SUSCEPTIBLE;
 }