Class ResultsPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
ResultsPanelRouting, ResultsPanelScheduling

public class ResultsPanel extends JMCHWizardPanel
Panel for showing the results of the simulations. This main class contains only the different ways of adding new results to the tables. The *real* tables are inside the subclasses of this class.
Author:
Lorenzo Torri Date: 15-jul-2024 Time: 10.53
See Also:
  • Field Details

    • help

      protected HoverHelp help
    • statusResults

      protected ImageIcon statusResults
    • statusResultsLabel

      protected JLabel statusResultsLabel
    • typeOfResult

      protected String[] typeOfResult
    • generatedJobs

      protected int[] generatedJobs
    • algorithms

      protected String[] algorithms
    • arrivalDistibutions

      protected String[] arrivalDistibutions
    • lambdas

      protected double[] lambdas
    • serviceDistributions

      protected String[] serviceDistributions
    • serversNumber

      protected int[] serversNumber
    • queuesNumber

      protected int[] queuesNumber
    • services

      protected double[] services
    • responseTimes

      protected double[] responseTimes
    • queueTimes

      protected double[] queueTimes
    • thoughputs

      protected double[] thoughputs
    • nCustomers

      protected double[] nCustomers
    • classOps

      protected List<ListOp> classOps
    • animRow

      protected int animRow
  • Constructor Details

    • ResultsPanel

      public ResultsPanel(MainWizard main)
  • Method Details

    • getName

      public String getName()
      Overrides:
      getName in class JMCHWizardPanel
      Returns:
      the panel's name
    • addResult

      public void addResult(String typeOfResult, int generatedJob, String algorithm, String arrivalDistr, double lambda, String serviceDistr, int nServers, double service, double responseTime, double queueTime, double thoughput, double nCustomer)
      Method called by the MainWizard to update the Result Panel for SCHEDULING
      Parameters:
      typeOfResult - if the result is the one from JSIM or from the Animation
      generatedJob - the number of jobs used for this result
      algorithm - queue algorithm of the animation
      arrivalDistr - arrival time distribution
      lambda - the inter arrival time
      serviceDistr - service time distribution
      nServers - number of servers in the station
      service - service time
      responseTime - response time
      queueTime - queue time
      thoughput - thoughput
      nCustomer - customer numbers
    • addResult

      public void addResult(String typeOfResult, int generatedJob, String algorithm, String arrivalDistr, double lambda, String serviceDistr, int nQueues, double responseTime, double thoughput, double nCustomer)
      Method called by the MainWizard to update the Result Panel for ROUTING
      Parameters:
      typeOfResult - if the result is the one from JSIM or from the Animation
      generatedJob - the number of jobs used for this result
      algorithm - routing algorithm of the animation
      arrivalDistr - arrival time distribution
      lambda - the inter arrival time
      serviceDistr - service time distribution
      nQueues - number of queues reachable
      responseTime - response time of the system
      thoughput - thoughput of the system
      nCustomer - customer numbers of the system
    • updateResult

      public void updateResult(int generatedJob, double responseTime, double queueTime, double thoughput, double nCustomer)
      Update the result of the ANIMSimulation
      Parameters:
      responseTime -
      queueTime -
      thoughput -
      nCustomer -
    • loadingResult

      public void loadingResult()
    • endResult

      public void endResult()
    • setResults

      public void setResults(ResultStructure rs)
      Sets the results of previous analysis
    • canGoBack

      public boolean canGoBack()
      Overrides:
      canGoBack in class WizardPanel
      Returns:
      true if it is ok for the wizard to go back. It is ok for the queried panel to pop up a message box explaining why it cannot go back.
    • setLastPanel

      public void setLastPanel()
      Overrides:
      setLastPanel in class JMCHWizardPanel
    • lostFocus

      public void lostFocus()
      Description copied from class: WizardPanel
      called by the Wizard before when switching to another panel
      Overrides:
      lostFocus in class WizardPanel
    • getTypeOfResult

      public String[] getTypeOfResult()
    • getGeneratedJobs

      public int[] getGeneratedJobs()
    • getAlgorithms

      public String[] getAlgorithms()
    • getArrivalDistirbutions

      public String[] getArrivalDistirbutions()
    • getLambdas

      public double[] getLambdas()
    • getServiceDistributions

      public String[] getServiceDistributions()
    • getNservers

      public int[] getNservers()
    • getNQueues

      public int[] getNQueues()
    • getServiceTimes

      public double[] getServiceTimes()
    • getResponseTimes

      public double[] getResponseTimes()
    • getThroughputs

      public double[] getThroughputs()
    • getQueueTimes

      public double[] getQueueTimes()
    • getNumberOfCustomers

      public double[] getNumberOfCustomers()