Package jmt.engine.NetStrategies.RoutingStrategies

Examples of jmt.engine.NetStrategies.RoutingStrategies.RoundRobinStrategy


      sim.addClasses(classes);

      //terminal
      RoundRobinStrategy[] rrs_term = new RoundRobinStrategy[1];
      rrs_term[0] = new RoundRobinStrategy();

      int[] numJobs = { 6 };

      ServiceTimeStrategy[] ds = { new ServiceTimeStrategy(DelayExp[0], DelayPar[0]) };

      sim.addNode("terminal", new Terminal(numJobs), new Delay(ds), new Router(rrs_term));

      //server
      ServiceStrategy[] serv_strat = new ServiceStrategy[1];
      serv_strat[0] = new ServiceTimeStrategy(serverExp[0], serverPar[0]);

      RoundRobinStrategy[] rrs_serv = new RoundRobinStrategy[1];
      rrs_serv[0] = new RoundRobinStrategy();

      sim.addNode("server", new Queue(-1, false, null, null), new Server(1, null, serv_strat), new Router(rrs_serv));

      //connections
      sim.addConnection("terminal", "server");
View Full Code Here

TOP

Related Classes of jmt.engine.NetStrategies.RoutingStrategies.RoundRobinStrategy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.