Examples of IterationSelector


Examples of jmt.gui.exact.panels.IterationSelector

    }
    JFrame solutionWindow = new JFrame(resultTitle);
    solutionWindow.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
    solutionWindow.getContentPane().add(jtp);
    solutionWindow.setIconImage(this.getIconImage());
    IterationSelector selector = null;
    if (data.isWhatIf()) {
      // Graphic panel (Bertoli Marco)
      jtp.add(new GraphPanel(data));
      selector = new IterationSelector(data);
    }
    /* EDITED by Abhimanyu Chugh */
    if (selector != null && data.isClosed() && data.isWhatifAlgorithms()) {
      for (SolverAlgorithm algorithm : data.getWhatifAlgorithms()) {
        AlgorithmPanel algPanel = new AlgorithmPanel(this, algorithm);
        algPanel.addSolutionPanel(new ThroughputPanel(this, algorithm));
        algPanel.addSolutionPanel(new QueueLenPanel(this, algorithm));
        algPanel.addSolutionPanel(new ResTimePanel(this, algorithm));
        algPanel.addSolutionPanel(new SystemRespTimePanel(this, algorithm));
        algPanel.addSolutionPanel(new UtilizationPanel(this, algorithm));
        //Added by ASHANKA START
        // for System Power
        algPanel.addSolutionPanel(new SysPowerPanel(this, algorithm));
        //Added by ASHANKA STOP
        selector.addSolutionPanel(algPanel);
      }
      jtp.add(selector);
    } else if (selector != null && data.isClosed()) {
      SolverAlgorithm algorithm = data.getAlgorithmType();
      AlgorithmPanel algPanel = new AlgorithmPanel(this, algorithm);
      algPanel.addSolutionPanel(new ThroughputPanel(this, algorithm));
      algPanel.addSolutionPanel(new QueueLenPanel(this, algorithm));     
      algPanel.addSolutionPanel(new ResTimePanel(this, algorithm));
      algPanel.addSolutionPanel(new SystemRespTimePanel(this, algorithm));
      algPanel.addSolutionPanel(new UtilizationPanel(this, algorithm));
      //Added by ASHANKA START
      // for System Power
      algPanel.addSolutionPanel(new SysPowerPanel(this, algorithm));
      //Added by ASHANKA STOP
      selector.addSolutionPanel(algPanel);
      /*
      selector.addSolutionPanel(throughput);
      selector.addSolutionPanel(queuelength);
      selector.addSolutionPanel(restimes);
      selector.addSolutionPanel(utilizations);
      //Added by ASHANKA START
      // for System Power
      selector.addSolutionPanel(systemPower);
      */
      //Added by ASHANKA STOP
      jtp.add(selector);
    } else if (selector != null) {
      SolverAlgorithm algorithm = data.getAlgorithmType();
      selector.addSolutionPanel(new ThroughputPanel(this, algorithm));
      selector.addSolutionPanel(new QueueLenPanel(this, algorithm));
      selector.addSolutionPanel(new ResTimePanel(this, algorithm));
      selector.addSolutionPanel(new SystemRespTimePanel(this, algorithm));
      selector.addSolutionPanel(new UtilizationPanel(this, algorithm));
      //Added by ASHANKA START
      // for System Power
      selector.addSolutionPanel(new SysPowerPanel(this, algorithm));
      //Added by ASHANKA STOP
      jtp.add(selector);
    } else {
      SolverAlgorithm alg = data.getAlgorithmType();
      ThroughputPanel throughput = new ThroughputPanel(this, alg);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.