Package jline.lang
Class ClosedClass
java.lang.Object
jline.lang.Element
jline.lang.NetworkElement
jline.lang.JobClass
jline.lang.ClosedClass
- All Implemented Interfaces:
Serializable,Copyable
- Direct Known Subclasses:
ClosedSignal,SelfLoopingClass
Class where jobs perpetually loop without arriving or leaving (Closed class)
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionClosedClass(Network model, String name, double njobs, Station refstat) Creates a new closed job class with default priority (0).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, int priority, double deadline) Creates a new closed job class with the specified population, reference station, priority, and deadline.ClosedClass(Network model, String name, int njobs, Station refstat) ClosedClass(Network model, String name, int njobs, Station refstat, int priority) ClosedClass(Network model, String name, int njobs, Station refstat, int priority, double deadline) -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the fixed population of jobs in this closed class.doubleReturns the population size for this closed class.Returns the reference station for this closed class.voidPrints a summary of this closed class configuration.voidsetPopulation(double pop) Sets the population size for this closed class.Methods inherited from class jline.lang.JobClass
expectsReply, getAttribute, getBalkingStrategy, getBalkingThresholds, getCompletes, getDeadline, getImpatienceType, getIndex, getJobClassType, getMaxRetrialAttempts, getPatience, getPriority, getReplySignalClassIndex, getRetrialDelayDistribution, hasBalking, hasImmediateFeedback, hasPatience, hasRetrial, isReferenceClass, isReferenceStation, setAttribute, setBalking, setBalking, setCompletes, setDeadline, setImmediateFeedback, setPatience, setPatience, setPriority, setReferenceClass, setReferenceStation, setReplySignalClassIndex, setRetrial, setRetrial
-
Field Details
-
population
protected double population -
model
-
-
Constructor Details
-
ClosedClass
public ClosedClass(Network model, String name, double njobs, Station refstat, int priority, double deadline) Creates a new closed job class with the specified population, reference station, priority, and deadline. Closed classes have a fixed number of jobs that circulate within the network.- 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 classdeadline- the relative deadline in time units from arrival, or Double.POSITIVE_INFINITY for no deadline
-
ClosedClass
-
ClosedClass
Creates a new closed job class with the specified population and reference station. Closed classes have a fixed number of jobs that circulate within the network.- 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
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
-
ClosedClass
-
-
Method Details
-
getNumberOfJobs
public double getNumberOfJobs()Returns the fixed population of jobs in this closed class.- Overrides:
getNumberOfJobsin classJobClass- Returns:
- the number of jobs in this class
-
getPopulation
public double getPopulation()Returns the population size for this closed class.- Returns:
- the population size
-
setPopulation
public void setPopulation(double pop) Sets the population size for this closed class.- Parameters:
pop- the new population size
-
getReferenceStation
Returns the reference station for this closed class.- Overrides:
getReferenceStationin classJobClass- Returns:
- the reference station
-
printSummary
public void printSummary()Prints a summary of this closed class configuration.- Overrides:
printSummaryin classJobClass
-