Package jline.lang
Class OpenClass
java.lang.Object
jline.lang.Element
jline.lang.NetworkElement
jline.lang.JobClass
jline.lang.OpenClass
- All Implemented Interfaces:
Serializable,Copyable
- Direct Known Subclasses:
OpenSignal
A class of jobs that arrives from the external world to the Network and, after completion, leaves it
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new open job class with default priority (0).Creates a new open job class with the specified priority.Creates a new open job class with the specified priority and deadline. -
Method Summary
Modifier and TypeMethodDescriptionvoidPrints 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, getBalkingStrategy, getBalkingThresholds, getCompletes, getDeadline, getImpatienceType, getIndex, getJobClassType, getMaxRetrialAttempts, getNumberOfJobs, getPatience, getPriority, getReferenceStation, getReplySignalClassIndex, getRetrialDelayDistribution, hasBalking, hasImmediateFeedback, hasPatience, hasRetrial, isReferenceClass, isReferenceStation, setAttribute, setBalking, setBalking, setCompletes, setDeadline, setImmediateFeedback, setPatience, setPatience, setPriority, setReferenceClass, setReplySignalClassIndex, setRetrial, setRetrial
-
Field Details
-
model
-
-
Constructor Details
-
OpenClass
Creates a new open job class with the specified priority and deadline. Open classes represent jobs that arrive from external sources and leave the system after service completion.- 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.POSITIVE_INFINITY for no deadline
-
OpenClass
Creates a new open job class with the specified priority. Open classes represent jobs that arrive from external sources and leave the system after service completion.- Parameters:
model- the network model to add this class toname- the name for this open classpriority- the priority level for jobs in this class
-
OpenClass
Creates a new open job class with default priority (0).- Parameters:
model- the network model to add this class toname- the name for this open class
-
-
Method Details
-
printSummary
public void printSummary()Prints a summary of this open class configuration.- Overrides:
printSummaryin classJobClass
-
setReferenceStation
Sets the reference station for this open class. For open classes, the reference station must be a Source node.- Overrides:
setReferenceStationin classJobClass- Parameters:
source- the source station to use as reference- Throws:
Exception- if the station is not a Source
-