Class ResultStructure

java.lang.Object
jmt.jmch.wizard.panels.resultsPanel.ResultStructure

public class ResultStructure extends Object
Custom class for saving the results of previous simulations
Author:
Lorenzo Torri Date: 19-Oct-2024 Time: 10.00
  • Field Details

    • type

      protected SimulationType type
    • typeOfResult

      protected String[] typeOfResult
    • generatedJobs

      protected int[] generatedJobs
    • algorithms

      protected String[] algorithms
    • arrivalDistibutions

      protected String[] arrivalDistibutions
    • lambdas

      protected double[] lambdas
    • serviceDistributions

      protected String[] serviceDistributions
    • responseTimes

      protected double[] responseTimes
    • thoughputs

      protected double[] thoughputs
    • nCustomers

      protected double[] nCustomers
    • queuesNumber

      protected int[] queuesNumber
    • nservers

      protected int[] nservers
    • services

      protected double[] services
    • queueTimes

      protected double[] queueTimes
  • Constructor Details

    • ResultStructure

      public ResultStructure()
  • Method Details

    • setAll

      public void setAll(SimulationType simType, String[] types, int[] genJobs, String[] algo, String[] arrivalD, double[] lamb, String[] serviceD, double[] R, double[] X, double[] N, int[] queueN, int[] nservs, double[] S, double[] Q)
      Save the results of previous simulations in this data structure. If you need to save Routing simulations, than nservs, S, Q should be equal to arrays of size = 0. If you need to save Scheduling simulations, then queueN should be equal to an array of size = 0.
      Parameters:
      simType - the type of the simulation to save
      types - if the result is the one from JSIM or from the Animation
      genJobs - number of jobs used for the simulation
      algo - algorithms used
      arrivalD - inter arrival distributions
      lamb - lambdas
      serviceD - service time distributions
      R - response times
      X - thoughputs
      N - number of customers
      queueN - number of queues (only for Routing)
      nservs - number of servers (only for Scheduling)
      S - service times (only for Scheduling)
      Q - queue times (only for Scheduling)
    • getPreviousSimulationType

      public SimulationType getPreviousSimulationType()
    • getTypeOfResult

      public String[] getTypeOfResult()
    • getGeneratedJobs

      public int[] getGeneratedJobs()
    • getAlgorithms

      public String[] getAlgorithms()
    • getArrivalDistibutions

      public String[] getArrivalDistibutions()
    • getLambdas

      public double[] getLambdas()
    • getNservers

      public int[] getNservers()
    • getQueueTimes

      public double[] getQueueTimes()
    • getQueuesNumber

      public int[] getQueuesNumber()
    • getResponseTimes

      public double[] getResponseTimes()
    • getServiceDistributions

      public String[] getServiceDistributions()
    • getServices

      public double[] getServices()
    • getThoughputs

      public double[] getThoughputs()
    • getnCustomers

      public double[] getnCustomers()