Class ResultStructure
java.lang.Object
jmt.jmch.wizard.panels.resultsPanel.ResultStructure
Custom class for saving the results of previous simulations
- Author:
- Lorenzo Torri Date: 19-Oct-2024 Time: 10.00
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String[]protected String[]protected int[]protected double[]protected double[]protected int[]protected int[]protected double[]protected double[]protected String[]protected double[]protected double[]protected SimulationTypeprotected String[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]String[]int[]double[]double[]int[]int[]double[]double[]String[]double[]double[]String[]voidsetAll(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.
-
Field Details
-
type
-
typeOfResult
-
generatedJobs
protected int[] generatedJobs -
algorithms
-
arrivalDistibutions
-
lambdas
protected double[] lambdas -
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 savetypes- if the result is the one from JSIM or from the AnimationgenJobs- number of jobs used for the simulationalgo- algorithms usedarrivalD- inter arrival distributionslamb- lambdasserviceD- service time distributionsR- response timesX- thoughputsN- number of customersqueueN- 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
-
getTypeOfResult
-
getGeneratedJobs
public int[] getGeneratedJobs() -
getAlgorithms
-
getArrivalDistibutions
-
getLambdas
public double[] getLambdas() -
getNservers
public int[] getNservers() -
getQueueTimes
public double[] getQueueTimes() -
getQueuesNumber
public int[] getQueuesNumber() -
getResponseTimes
public double[] getResponseTimes() -
getServiceDistributions
-
getServices
public double[] getServices() -
getThoughputs
public double[] getThoughputs() -
getnCustomers
public double[] getnCustomers()
-