コード例 #1
0
        public void Print(IRouterStatus Router)
        {
            Console.WriteLine("Router " + Router.Name());
            foreach (var entry in Router.RoutingTable().Keys)
            {
                Console.WriteLine(entry.Name() + " - " + Router.RoutingTable()[entry].Cost() +  ","+ Router.RoutingTable()[entry].Target().Name());

            }
            Console.WriteLine("");
        }
コード例 #2
0
 public void AddRouter(IRouterStatus RouterStatus, IIteratable Iterator)
 {
     Routers.Add(RouterStatus);
     IterableRouters.Add(Iterator);
 }