Package jline.lang
Class ClosedClass
-
- All Implemented Interfaces:
-
java.io.Serializable
,jline.lang.Copyable
public class ClosedClass extends JobClass implements Serializable
Class where jobs perpetually loop without arriving or leaving (Closed class)
-
-
Field Summary
Fields Modifier and Type Field Description protected double
population
protected Network
model
protected JobClassType
type
protected int
priority
protected boolean
completes
protected Station
refstat
protected boolean
isrefclass
protected int
index
public Array<Integer>
attribute
protected String
name
-
Constructor Summary
Constructors Constructor Description ClosedClass(Network model, String name, int njobs, Station refstat, int priority)
ClosedClass(Network model, String name, double njobs, Station refstat, int priority)
Creates a new closed job class with the specified population and reference station. ClosedClass(Network model, String name, double njobs, Station refstat)
Creates a new closed job class with default priority (0). ClosedClass(Network model, String name, int njobs, Station refstat)
-
Method Summary
Modifier and Type Method Description double
getNumberOfJobs()
Returns the fixed population of jobs in this closed class. double
getPopulation()
Returns the population size for this closed class. void
setPopulation(double pop)
Sets the population size for this closed class. Station
getReferenceStation()
Returns the reference station for this closed class. void
printSummary()
Prints a summary of this closed class configuration. -
Methods inherited from class jline.lang.JobClass
getAttribute, getCompletes, getIndex, getJobClassType, getPriority, isReferenceClass, isReferenceStation, setAttribute, setCompletes, setPriority, setReferenceClass, setReferenceStation
-
Methods inherited from class jline.lang.Element
getName, setName
-
Methods inherited from class jline.lang.Copyable
copy
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ClosedClass
ClosedClass(Network model, String name, double njobs, Station refstat, int priority)
Creates a new closed job class with the specified population and reference station.- Parameters:
model
- the network model to add this class toname
- the name for this closed classnjobs
- the fixed population of jobs in this classrefstat
- the reference station for performance normalizationpriority
- the priority level for jobs in this class
-
ClosedClass
ClosedClass(Network model, String name, double njobs, Station refstat)
Creates a new closed job class with default priority (0).- Parameters:
model
- the network model to add this class toname
- the name for this closed classnjobs
- the fixed population of jobs in this classrefstat
- the reference station for performance normalization
-
-
Method Detail
-
getNumberOfJobs
double getNumberOfJobs()
Returns the fixed population of jobs in this closed class.
- Returns:
the number of jobs in this class
-
getPopulation
double getPopulation()
Returns the population size for this closed class.
- Returns:
the population size
-
setPopulation
void setPopulation(double pop)
Sets the population size for this closed class.
- Parameters:
pop
- the new population size
-
getReferenceStation
Station getReferenceStation()
Returns the reference station for this closed class.
- Returns:
the reference station
-
printSummary
void printSummary()
Prints a summary of this closed class configuration.
-
-
-
-