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);