Class Job
- java.lang.Object
-
- nl.tudelft.simulation.dsol.formalisms.flow.Entity<Double>
-
- nl.tudelft.simulation.examples.dsol.timesharedcomputer.Job
-
- All Implemented Interfaces:
Serializable,Identifiable
public class Job extends Entity<Double>
The Computer job as published in Simulation Modeling and Analysis by A.M. Law & W.D. Kelton section 1.4 and 2.4.
Copyright (c) 2003-2021 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: General Public License (GPL) , no warranty- Author:
- Peter Jacobs
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Job(String id, DistContinuous serviceTimeDistribution, FlowObject source, double creationTime)constructs a new Job.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FlowObjectgetOwner()returns the source.doublegetServiceTime()returns the serviceTime.voidsetServiceTime(double serviceTime)sets the serviceTime.-
Methods inherited from class nl.tudelft.simulation.dsol.formalisms.flow.Entity
clone, getCreationTime, getId, getNumberValue, getStringValue, getTimestamp, setNumberValue, setStringValue, setTimestamp, toString
-
-
-
-
Constructor Detail
-
Job
public Job(String id, DistContinuous serviceTimeDistribution, FlowObject source, double creationTime)
constructs a new Job.- Parameters:
id- String; the job idserviceTimeDistribution- DistContinuous; the distribution from which to draw the serviceTimesource- Station; the source of the jobcreationTime- double; time of creation
-
-
Method Detail
-
getServiceTime
public double getServiceTime()
returns the serviceTime.- Returns:
- double the time
-
setServiceTime
public void setServiceTime(double serviceTime)
sets the serviceTime.- Parameters:
serviceTime- double; the time
-
getOwner
public FlowObject getOwner()
returns the source.- Returns:
- Station the owning terminal
-
-