Examples of WhatIfPlot


Examples of jmt.framework.gui.graph.WhatIfPlot

    // Puts graph in the right panel
    // Creates label for X-axis
    String xLabel = "";
    if (model.getWhatIfClass() >= 0) {
      graph = new WhatIfPlot(model.getWhatIfValues());
      if (model.getWhatIfType().equals(ExactConstants.WHAT_IF_ARRIVAL)) {
        xLabel = "Arrival rate \u03bbi for " + model.getClassNames()[model.getWhatIfClass()] + " [job/s]";
      } else if (model.getWhatIfType().equals(ExactConstants.WHAT_IF_CUSTOMERS)) {
        xLabel = "Number of customers Ni for " + model.getClassNames()[model.getWhatIfClass()];
      } else if (model.getWhatIfType().equals(ExactConstants.WHAT_IF_DEMANDS)) {
        xLabel = "Service demand Di for " + model.getClassNames()[model.getWhatIfClass()] + " at "
            + model.getStationNames()[model.getWhatIfStation()] + " [s]";
      } else if (model.getWhatIfType().equals(ExactConstants.WHAT_IF_MIX)) {
        xLabel = "Population mix \u03b2i for " + model.getClassNames()[model.getWhatIfClass()];
      }
    } else {
      graph = new WhatIfPlot(ArrayUtils.multiply(model.getWhatIfValues(), 100.0));
      if (model.getWhatIfType().equals(ExactConstants.WHAT_IF_ARRIVAL)) {
        xLabel = "% of arrival rates \u03bbi w.r.t. initial values";
      } else if (model.getWhatIfType().equals(ExactConstants.WHAT_IF_CUSTOMERS)) {
        xLabel = "% of customers Ni w.r.t. initial values";
      } else if (model.getWhatIfType().equals(ExactConstants.WHAT_IF_DEMANDS)) {
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.