public void L111_5_10_20Mhz_Configuration_WithRoutings()
        {
            Topology t = SyslogParser.CreateTopology("../../../../Configurations/L111_5_10_20Mhz.log");

            t.AllocateLinksPaths();
            t.AllocateSlots();

            RoutingTable rt = t.CalculateRoutingTableForDevice("/MRBTS-1/RAT-1/EQM_L-1/SMOD_L-1/CCU_L-1/BBSWITCH_L-1");
        }
Beispiel #2
0
        public void SimpleRoutingCalculation()
        {
            Topology t = new Topology();

            t.AddDevice("D/I");
            t.AddDevice("P/O");
            t.AddDevice("RT/I");
            t.AddDevice("RT/O");

            t.AddConnection("C1", "D/I", "RT/I", 20);
            t.AddConnection("C2", "RT/I", "RT/O", 80);
            t.AddConnection("C3", "RT/O", "P/O", 40);

            t.AddLink("L1", "D/I", "P/O", 10);
            t.AddLink("L2", "D/I", "P/O", 10);

            t.AllocateLinksPaths();
            t.AllocateSlots();

            RoutingTable rt = t.CalculateRoutingTableForDevice("RT");

            Assert.AreEqual(2, rt.routingEntities.Count);
        }