Package jmt.engine.QueueNet

Examples of jmt.engine.QueueNet.QueueNetwork


  public void initialize() throws NetException {
    // Resets the job counter
    Job.resetCounter();
   
    // creates network
    network = new QueueNetwork("jSIM simulation: " + name);
    // adds network to NetSystem
    NetSystem.addNetwork(network);

    //add all job classes to QueueNetwork
    for (JobClass classe : classes) {
View Full Code Here


        e.printStackTrace();
      }

      if (NetSystem.pause()) {
        if (NetSystem.getNetworkList().size() != 0) {
          QueueNetwork net = NetSystem.getNetworkList().get(0);
          try {
            progr = NetSystem.checkProgress(net);
            System.out.println("PROGRESS: " + Double.toString(progr));
            if (progr == 1) {
              //finished = true;
View Full Code Here

   * Initializes the stationMap and classMap variable. It realizes a mapping between
   * the representation of classes and servers at CommonModel level (by a Key) and
   * the representation at engine level
   */
  public void initialize() {
    QueueNetwork net = dispatcher.getSimulation().getNetwork();
    NodeList nodeList = net.getNodes();
    JobClassList classList = net.getJobClasses();
    TreeMap<String, Object> tm = new TreeMap<String, Object>();
    //a TreeMap is used to speedup the following code
    for (int j = 0; j < servers.size(); j++) {
      Object thisKey = servers.get(j);
      String thisName = mediator.getStationDefinition().getStationName(thisKey);
View Full Code Here

TOP

Related Classes of jmt.engine.QueueNet.QueueNetwork

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.