Class Solver

java.lang.Object
jmt.jmch.Solver
All Implemented Interfaces:
CommonConstants, EngineNodeConstants

public class Solver extends Object implements CommonConstants
This class transforms the information of the Animation to match the structure of the CommonModel class. CommonModel is used to obtain the results of the simulation.
Author:
Lorenzo Torri Date: 06-mag-2024 Time: 17.28
  • Constructor Details

    • Solver

      public Solver(Simulation sim, Distribution interADistr, Distribution serviceDistr, int nservers, double[] prob, int maxSamples, long seed)
      Parameters:
      sim - Simulation data Structure
      interADistr - Distribution for the inter arrival time
      serviceDistr - Distribution for the service time
      nservers - number of servers in the simulation
      prob - array of probabilities (for Routing Probabilities)
      maxSamples - max samples for the animation
      seed - the seed for the random generator used in the simulation
  • Method Details

    • getModel

      public CommonModel getModel()
    • getStrategy

      public String getStrategy()
    • getInterArrivalDistribution

      public String getInterArrivalDistribution()
    • getInterArrivalTimeMean

      public double getInterArrivalTimeMean()
    • getServiceDistribution

      public String getServiceDistribution()
    • getServiceTimeMean

      public double getServiceTimeMean()
    • getNumberServers

      public int getNumberServers()
    • getNumberQueues

      public int getNumberQueues()
    • getMaxSamples

      public int getMaxSamples()