Package jline.lang.nodes
Class Source
- All Implemented Interfaces:
Serializable,Copyable
An abstraction of the external world jobs in open classes come from
- See Also:
-
Field Summary
FieldsFields inherited from class jline.lang.nodes.Station
balkingStrategies, balkingThresholds, cap, classCap, dropRule, impatienceTypes, lcdScaling, ljcdCutoffs, ljcdScaling, ljdCutoffs, ljdScaling, lldScaling, numberOfServers, patienceDistributions, retrialDelayDistributions, retrialMaxAttempts, switchoverTimesFields inherited from class jline.lang.nodes.ServiceNode
schedPolicy, schedStrategyPar, serviceProcessesFields inherited from class jline.lang.nodes.Node
dropStrategy, input, model, nodeIndex, output, server, statefulIdx, stationIdx -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsJobClass(JobClass jobClass) Checks if this source has an arrival process configured for the specified job class.getArrivalDistribution(JobClass jobClass) Gets the arrival distribution for a specific job class.final DistributiongetArrivalProcess(JobClass jobClass) Gets the arrival process distribution for a specific job class.Gets the scheduling strategy for this source node.voidPrints a summary of this node's configuration to the console.protected voidremoveArrivalProcess(JobClass jobClass) Removes the arrival process for a specific job class.voidsetArrival(JobClass jobClass, Object distribution) Sets the arrival distribution for a specific job class.voidsetArrivalProcess(ServiceBinding arrivalProcess) Sets the arrival process using a service binding.Methods inherited from class jline.lang.nodes.Station
getBalkingStrategy, getBalkingStrategyLocal, getBalkingThresholds, getBalkingThresholdsLocal, getCap, getClassCap, getDropRule, getImpatienceType, getImpatienceTypeLocal, getLimitedClassDependence, getLimitedJointClassDependence, getLimitedJointClassDependenceCutoffs, getLimitedJointDependence, getLimitedJointDependenceCutoffs, getLimitedLoadDependence, getMaxRetrialAttempts, getMaxRetrialAttemptsLocal, getNumberOfServers, getPatience, getPatienceLocal, getRetrialDelayDistribution, getRetrialDelayDistributionLocal, getServiceRates, getSourceRates, getSwitchoverTime, hasBalking, hasBalkingLocal, hasPatience, hasPatienceLocal, hasRetrial, hasRetrialLocal, hasSwitchoverTime, isReferenceStation, isServiceDefined, isServiceDefined, isServiceDisabled, isServiceDisabled, setBalking, setBalking, setCap, setCapacity, setChainCapacity, setClassCap, setDropRule, setLimitedClassDependence, setLimitedJointClassDependence, setLimitedJointDependence, setLimitedLoadDependence, setNumberOfServers, setPatience, setPatience, setRetrial, setRetrial, setSwitchoverTimeMethods inherited from class jline.lang.nodes.ServiceNode
getSchedStrategyPar, getServiceProcess, setService, setServiceMethods inherited from class jline.lang.nodes.StatefulNode
clearState, getState, getStatefulIndex, getStatePrior, getStateSpace, resetStateSpace, setState, setState, setStatePrior, setStateSpaceMethods inherited from class jline.lang.nodes.Node
getAttribute, getDropStrategy, getInput, getModel, getNodeIndex, getOutput, getOutputStrategies, getRoutingStrategy, getSections, getServer, getStatefulIdx, getStationIdx, isStateful, reset, resetRouting, setKChoicesRouting, setModel, setNodeIdx, setProbRouting, setRLRouting, setRouting, setRouting, setStationIdx
-
Field Details
-
arrivalProcess
-
schedStrategy
-
-
Constructor Details
-
Source
Creates a new source node in the specified network. Initializes arrival processes for all job classes with Disabled distribution.- Parameters:
model- the network model to add this source toname- the name for this source node
-
-
Method Details
-
containsJobClass
Checks if this source has an arrival process configured for the specified job class.- Parameters:
jobClass- the job class to check- Returns:
- true if an arrival process exists for this job class, false otherwise
-
getArrivalDistribution
Gets the arrival distribution for a specific job class.- Parameters:
jobClass- the job class to query- Returns:
- the arrival distribution, or Disabled if none configured
-
getArrivalProcess
Gets the arrival process distribution for a specific job class. This is an alias for getArrivalDistribution.- Parameters:
jobClass- the job class to query- Returns:
- the arrival distribution, or Disabled if none configured
-
getSchedStrategy
Gets the scheduling strategy for this source node. Sources always use EXT (external) scheduling strategy.- Overrides:
getSchedStrategyin classStation- Returns:
- the scheduling strategy (always SchedStrategy.EXT)
-
printSummary
public void printSummary()Description copied from class:NodePrints a summary of this node's configuration to the console.- Overrides:
printSummaryin classNode
-
removeArrivalProcess
Removes the arrival process for a specific job class.- Parameters:
jobClass- the job class whose arrival process should be removed
-
setArrival
Sets the arrival distribution for a specific job class. If distribution is null or Disabled, sets class capacity to 0. If a Workflow is provided, it will be converted to a PH distribution.- Parameters:
jobClass- the job class to configuredistribution- the arrival distribution or workflow to set
-
setArrivalProcess
Sets the arrival process using a service binding. Removes any existing arrival process for the same job class.- Parameters:
arrivalProcess- the service binding defining the arrival process
-