Package jline.lang
Class SelfLoopingClass
-
- All Implemented Interfaces:
-
java.io.Serializable
,jline.lang.Copyable
public class SelfLoopingClass extends ClosedClass implements Serializable
Class of jobs that perpetually loop at a given station
-
-
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 SelfLoopingClass(Network model, String name, long njobs, Station refstat, int priority)
Creates a new self-looping job class with specified priority. SelfLoopingClass(Network model, String name, long njobs, Station refstat)
Creates a new self-looping job class with default priority (0).
-
Method Summary
Modifier and Type Method Description -
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.ClosedClass
getNumberOfJobs, getPopulation, getReferenceStation, printSummary, setPopulation
-
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
-
SelfLoopingClass
SelfLoopingClass(Network model, String name, long njobs, Station refstat, int priority)
Creates a new self-looping job class with specified priority.- Parameters:
model
- the network model to add this class toname
- the name for this self-looping classnjobs
- the number of jobs in this closed classrefstat
- the reference station where jobs looppriority
- the priority level for this class
-
SelfLoopingClass
SelfLoopingClass(Network model, String name, long njobs, Station refstat)
Creates a new self-looping job class with default priority (0).- Parameters:
model
- the network model to add this class toname
- the name for this self-looping classnjobs
- the number of jobs in this closed classrefstat
- the reference station where jobs loop
-
-
-
-