Package jline.lang
Class OpenClass
-
- All Implemented Interfaces:
-
java.io.Serializable,jline.lang.Copyable
public class OpenClass extends JobClass implements Serializable
A class of jobs that arrives from the external world to the Network and, after completion, leaves it
-
-
Field Summary
Fields Modifier and Type Field Description protected Networkmodelprotected JobClassTypetypeprotected intpriorityprotected booleancompletesprotected Stationrefstatprotected booleanisrefclassprotected intindexprotected doubledeadlinepublic Array<Integer>attributepublic intreplySignalClassIndexpublic Distributionpatiencepublic PatienceTypepatienceTypeprotected Stringname
-
Constructor Summary
Constructors Constructor Description OpenClass(Network model, String name, int priority, double deadline)Creates a new open job class with the specified priority and deadline. OpenClass(Network model, String name, int priority)Creates a new open job class with the specified priority. OpenClass(Network model, String name)Creates a new open job class with default priority (0).
-
Method Summary
Modifier and Type Method Description voidprintSummary()Prints a summary of this open class configuration. voidsetReferenceStation(Station source)Sets the reference station for this open class. -
Methods inherited from class jline.lang.JobClass
expectsReply, getAttribute, getCompletes, getDeadline, getIndex, getJobClassType, getNumberOfJobs, getPatience, getPatienceType, getPriority, getReferenceStation, getReplySignalClassIndex, hasPatience, isReferenceClass, isReferenceStation, setAttribute, setCompletes, setDeadline, setPatience, setPatience, setPriority, setReferenceClass, setReplySignalClassIndex -
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
-
OpenClass
OpenClass(Network model, String name, int priority, double deadline)
Creates a new open job class with the specified priority and deadline.- Parameters:
model- the network model to add this class toname- the name for this open classpriority- the priority level for jobs in this classdeadline- the relative deadline in time units from arrival, or Double.
-
OpenClass
OpenClass(Network model, String name, int priority)
Creates a new open job class with the specified priority.- Parameters:
model- the network model to add this class toname- the name for this open classpriority- the priority level for jobs in this class
-
-
Method Detail
-
printSummary
void printSummary()
Prints a summary of this open class configuration.
-
setReferenceStation
void setReferenceStation(Station source)
Sets the reference station for this open class. For open classes, the reference station must be a Source node.
- Parameters:
source- the source station to use as reference
-
-
-
-