Exemplo n.º 1
0
        public RC(Subnetwork subnetwork)
        {
            this.subnetwork = subnetwork;
            RC_Name         = "RC_" + subnetwork.emulationNodeId;
            messagesToSend  = new Stack <NetworkPackage>();
            contacts        = new List <RCContact>();
            paths           = new List <RCPath>();
            RCParser.ParseConfig(RC_Name, contacts, out graph);

            //foreach (RCContact c in contacts)
            //{
            //    Console.WriteLine("{0} {1}", c.contactName, c.subjectToAsk);
            //}
            //foreach (Edge e in graph.edges)
            //{
            //    Console.WriteLine("{0} {1} {2} {3}", e.id, e.start, e.end, e.length);
            //}
        }
Exemplo n.º 2
0
 public CC(Subnetwork subnetwork)
 {
     this.subnetwork = subnetwork;
     CC_Name         = "CC_" + subnetwork.emulationNodeId;
     connections     = new List <Connection>();
 }