예제 #1
0
        //interface
        public static void Configure(XmlNode configuration)
        {
            XmlNode bundle = configuration[Bundle.BundleTag];

            if (bundle != null)
            {
                Bundle.Configure(bundle);
            }
            XmlNode ip = configuration[Ip.IpTag];

            if (ip != null)
            {
                Ip.Configure(ip);
            }
            XmlNode linkLayer = configuration[LinkLayer.LinLayerTag];

            if (linkLayer != null)
            {
                LinkLayer.Configure(linkLayer);
            }
            XmlNode udp = configuration[Udp.UdpTag];

            if (udp != null)
            {
                Udp.Configure(udp);
            }
            XmlNode dijkstra = configuration[Dijkstra.DijkstraTag];

            if (dijkstra != null)
            {
                Dijkstra.Configure(dijkstra);
            }
            XmlNode aodv = configuration[Aodv.AodvTag];

            if (aodv != null)
            {
                Aodv.Configure(aodv);
            }
        }