Exemplo n.º 1
0
        public static void Init(string[] args)
        {
            Config config = new Config();


            config.read(args);

            rand = new Rand(Config.rand_seed);
            CurrentRound = 0;

            controller = Controller.construct();

            network = new Network(Config.network_nrX, Config.network_nrY);

            network.setup();

            Warming = true;
        }
Exemplo n.º 2
0
        public static void Init(string[] args)
        {
            Config config = new Config();

            config.read(args);

            rand = new Rand(Config.rand_seed);
            CurrentRound = 0;

            controller = Controller.construct();
	   		if (Config.ScalableRingClustered)
				network = new RC_Network(Config.network_nrX, Config.network_nrY);
			else if (Config.topology == Topology.HR_16drop)
				network = new HR_16drop_Network(Config.network_nrX, Config.network_nrY);				
			else if (Config.topology == Topology.HR_4drop)
				network = new HR_4drop_Network(Config.network_nrX, Config.network_nrY);	
			else if (Config.topology == Topology.HR_8drop)
				network = new HR_8drop_Network(Config.network_nrX, Config.network_nrY);
			else if (Config.topology == Topology.HR_8_16drop)
				network = new HR_8_16drop_Network(Config.network_nrX, Config.network_nrY);
			else if (Config.topology == Topology.HR_8_8drop)
				network = new HR_8_8drop_Network(Config.network_nrX, Config.network_nrY);
			else if (Config.topology == Topology.HR_16_8drop)				
				network = new HR_16_8drop_Network(Config.network_nrX, Config.network_nrY);
			else if (Config.topology == Topology.HR_32_8drop)				
				network = new HR_32_8drop_Network(Config.network_nrX, Config.network_nrY);
			else if (Config.topology == Topology.HR_buffered)
				network = new HR_buffered_Network(Config.network_nrX, Config.network_nrY);
			else if (Config.topology == Topology.SingleRing)
				network = new SingleRing_Network(Config.network_nrX, Config.network_nrY);
			else if (Config.topology == Topology.MeshOfRings)
				network = new MeshOfRings_Network(Config.network_nrX, Config.network_nrY);
                        else if (Config.topology == Topology.BufRingNetwork)
                            network = new BufRingNetwork(Config.network_nrX, Config.network_nrY);
                        else if (Config.topology == Topology.BufRingNetworkMulti)
                            network = new BufRingMultiNetwork(Config.network_nrX, Config.network_nrY);
	    	else
            	network = new Network(Config.network_nrX, Config.network_nrY);

	      	network.setup();
            Warming = true;
        }
Exemplo n.º 3
0
        public static void Init(string[] args)
        {
            Config config = new Config();


            config.read(args);

            rand = new Rand(Config.rand_seed);
            CurrentRound = 0;

            controller = Controller.construct();

            network = new Network(Config.network_nrX, Config.network_nrY);

            if (Config.bFtfly == true)
                network.ftflySetup();
            else
                network.setup();

            Warming = true;

	    /* HWA CODE */
	    switch(Config.sched.QoSPolicy)
	    {
	    case "BW":
		QoSCtrl = new QoSBandwidth(); 
		break;
	    case "DELAY":
		QoSCtrl = new QoSCalcDelay();
		break;
	    case "CLUSTER":
		QoSCtrl = new QoSDeadLineCluster();
		break;
	    default:
		QoSCtrl = new HWAQoSCtrl();
		break;
	    }
        }