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