Package jmt.engine.NodeSections

Examples of jmt.engine.NodeSections.Server


      serv_strat1[0] = new ServiceTimeStrategy(serverExp1[0], serverPar1[0]);

      RandomStrategy[] rrs_serv1 = new RandomStrategy[1];
      rrs_serv1[0] = new RandomStrategy();

      sim.addNode("server1", new Queue(-1, false, null, null), new Server(1, null, serv_strat1), new Router(rrs_serv1));

      //server 2
      ServiceStrategy[] serv_strat2 = new ServiceStrategy[1];
      serv_strat2[0] = new ServiceTimeStrategy(serverExp2[0], serverPar2[0]);

      RandomStrategy[] rrs_serv2 = new RandomStrategy[1];
      rrs_serv2[0] = new RandomStrategy();

      sim.addNode("server2", new Queue(-1, false, null, null), new Server(1, null, serv_strat2), new Router(rrs_serv2));

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


      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");
      sim.addConnection("server", "terminal");
View Full Code Here

TOP

Related Classes of jmt.engine.NodeSections.Server

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.