Class GeneralSolver
java.lang.Object
jmt.jmch.animation.solver.AnimationSolver
jmt.jmch.animation.solver.GeneralSolver
Solver for all the different animations (no PS)
- Author:
- Lorenzo Torri Date: 10-apr-2025 Time: 20.25
-
Field Summary
Fields inherited from class AnimationSolver
animation, completedJobs, generatedJobs, globalArrivalTime, nQueues, T -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit()Init variables, but it's also a way to reset all of them when the stop button is presseddoublejobEntrance(double randomArrival) Set the real arrival time of a job as Real arrival time previous job + new random valuevoidSets the completion time (T) based on the arrival of the job in the system and when the previous job finished.Methods inherited from class AnimationSolver
getMeasures, updateMeasures
-
Constructor Details
-
GeneralSolver
-
-
Method Details
-
init
public void init()Description copied from class:AnimationSolverInit variables, but it's also a way to reset all of them when the stop button is pressed- Overrides:
initin classAnimationSolver
-
jobEntrance
public double jobEntrance(double randomArrival) Set the real arrival time of a job as Real arrival time previous job + new random value- Specified by:
jobEntrancein classAnimationSolver- Parameters:
randomArrival- the new random value from the distribution- Returns:
-
jobExit
Sets the completion time (T) based on the arrival of the job in the system and when the previous job finished.- Specified by:
jobExitin classAnimationSolver- Parameters:
job- the job exiting the systemindex- the i-th station (0 if single queue)
-