コード例 #1
0
 public InviteMsgTimer() {
   try {
     dist = Distribution.getDistributionFromConfigFile("Antenna/InviteIntervall");
     refreshRate = Configuration.getIntegerParameter("Antenna/refreshRate");
   } catch (CorruptConfigurationEntryException e) {
     Tools.fatalError(e.getMessage());
   }
 }
コード例 #2
0
 /** Creates a new Drop Rate Reliability Model instance. */
 public LossyDelivery() {
   try {
     dropRate = Configuration.getDoubleParameter("LossyDelivery/dropRate");
   } catch (CorruptConfigurationEntryException e) {
     Main.fatalError(
         "Missing configuration entry for the Message Transmission Model:\n" + e.getMessage());
   }
 }