Package jline.lang.nodes
Class ServiceStation
java.lang.Object
jline.lang.Element
jline.lang.NetworkElement
jline.lang.nodes.Node
jline.lang.nodes.StatefulNode
jline.lang.nodes.ServiceNode
jline.lang.nodes.Station
jline.lang.nodes.ServiceStation
- All Implemented Interfaces:
Serializable,Cloneable,Copyable
- Direct Known Subclasses:
Queue
A station with a service process
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<ServiceBinding>Classes whose service was set with an explicit weight, as Python's_service_weightsrecords them.Fields inherited from class jline.lang.nodes.Station
balkingStrategies, balkingThresholds, batchRejectProb, cap, classCap, dropRule, impatienceTypes, lcdScaling, lcdScalingPeak, ljdScaling, ljdScalingPeak, lldScaling, numberOfServers, orbitImpatienceDistributions, orbitJoinProb, orbitMaxJobs, orbitPersistProb, orbitSearchProb, patienceDistributions, retrialDelayDistributions, retrialMaxAttempts, retrialPolicies, switchoverTimesFields inherited from class jline.lang.nodes.ServiceNode
schedPolicy, schedStrategy, schedStrategyParFields inherited from class jline.lang.nodes.Node
dropStrategy, input, model, nodeIndex, output, sdrDeclarations, server, statefulIdx, stationIdx -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetServiceProcess(JobClass jobClass) booleanWhether any class's service was set with an explicit weight (Pythonbool(queue._service_weights)), whatever its value.voidremoveJobClass(JobClass jobClass) Removes all per-class configuration referencing the given job class from this node.voidsetService(JobClass jobClass, Object distribution, double weight) voidsetService(JobClass jobClass, Distribution distribution) voidsetService(JobClass jobClass, Distribution distribution, double weight) Methods inherited from class jline.lang.nodes.Station
getBalkingStrategy, getBalkingStrategyLocal, getBalkingThresholds, getBalkingThresholdsLocal, getBatchRejectProbability, getCap, getClassCap, getDropRule, getImpatienceType, getImpatienceTypeLocal, getLimitedClassDependence, getLimitedClassDependencePeak, getLimitedJointDependence, getLimitedJointDependencePeak, getLimitedLoadDependence, getMaxRetrialAttempts, getMaxRetrialAttemptsLocal, getNumberOfServers, getOrbitalSearch, getOrbitImpatience, getOrbitImpatienceLocal, getOrbitJoinProbability, getOrbitMaxJobs, getOrbitPersistProbability, getPatience, getPatienceLocal, getRetrialDelayDistribution, getRetrialDelayDistributionLocal, getRetrialPolicy, getSchedStrategy, getServiceRates, getSourceRates, getStrategyParam, getSwitchoverTime, hasBalking, hasBalkingLocal, hasFiniteCap, hasOrbitImpatience, hasPatience, hasPatienceLocal, hasRetrial, hasRetrialLocal, hasSwitchoverTime, invalidateStruct, isReferenceStation, isServiceDefined, isServiceDefined, isServiceDisabled, isServiceDisabled, setBalking, setBalking, setBatchRejectProbability, setCap, setCapacity, setChainCapacity, setClassCap, setClassCapacity, setDropRule, setLimitedClassDependence, setLimitedClassDependence, setLimitedJointDependence, setLimitedJointDependence, setLimitedLoadDependence, setNumberOfServers, setOrbit, setOrbit, setOrbit, setOrbitalSearch, setOrbitImpatience, setOrbitPersistence, setOrbitPersistence, setPatience, setPatience, setRetrial, setRetrial, setStrategyParam, setSwitchoverTimeMethods inherited from class jline.lang.nodes.ServiceNode
getSchedStrategyParMethods inherited from class jline.lang.nodes.StatefulNode
clearState, getState, getStatefulIndex, getStatePrior, getStateSpace, resetStateSpace, setState, setState, setStatePrior, setStateSpaceMethods inherited from class jline.lang.nodes.Node
copy, copyElement, getAttribute, getDropStrategy, getInput, getModel, getNodeIndex, getOutput, getOutputStrategies, getRoutingStrategy, getSections, getServer, getStateDepRouting, getStatefulIdx, getStationIdx, hasClassSwitching, isStateful, isStation, link, printSummary, reset, resetRouting, setModel, setNodeIdx, setProbRouting, setRouting, setRouting, setRouting, setSQRouting, setStateDepRouting, setStationIdx, summary
-
Field Details
-
serviceProcesses
-
serviceWeightClasses
Classes whose service was set with an explicit weight, as Python's_service_weightsrecords them. The unweighted setService stores the default weight 1 in schedStrategyPar, so that map cannot tell an explicit weight of 1 from no weight at all.
-
-
Constructor Details
-
ServiceStation
-
-
Method Details
-
hasServiceWeights
public boolean hasServiceWeights()Whether any class's service was set with an explicit weight (Pythonbool(queue._service_weights)), whatever its value.- Returns:
- true when setService was called with a weight argument
-
getServiceProcess
- Overrides:
getServiceProcessin classServiceNode
-
removeJobClass
Description copied from class:NodeRemoves all per-class configuration referencing the given job class from this node. The base implementation drops the class's output (routing) strategies; subclasses extend it to drop service, capacity, arrival and class-switching configuration. Called byNetwork.removeClass(jline.lang.JobClass).- Overrides:
removeJobClassin classStation- Parameters:
jobClass- the job class being removed from the model
-
setService
- Overrides:
setServicein classServiceNode
-
setService
- Overrides:
setServicein classServiceNode
-
setService
-