Exemple #1
0
 public void SendRandTwoPoints()
 {
     int    indexSource      = UniformRandomVariable.GetIntValue(0, PublicParamerters.MainWindow.myNetWork.Count - 1);
     int    indexDestination = UniformRandomVariable.GetIntValue(0, PublicParamerters.MainWindow.myNetWork.Count - 1);
     Sensor source           = PublicParamerters.MainWindow.myNetWork[indexSource];
     Sensor dest             = PublicParamerters.MainWindow.myNetWork[indexDestination];
     TestSendPacketsBetweenTwoNodesRandomlySelected c = new TestSendPacketsBetweenTwoNodesRandomlySelected(source, dest);
 }
Exemple #2
0
 public void SendToDiagonal()
 {
     int    index = UniformRandomVariable.GetIntValue(0, PublicParamerters.MainWindow.myNetWork.Count - 1);
     Sensor sen   = PublicParamerters.MainWindow.myNetWork[index];
     ObtainSinkFreshPositionMessage ob = new ObtainSinkFreshPositionMessage(sen);
 }