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