Package jline.lang.nodes
Class ClassSwitch
java.lang.Object
jline.lang.Element
jline.lang.NetworkElement
jline.lang.nodes.Node
jline.lang.nodes.ClassSwitch
- All Implemented Interfaces:
Serializable,Copyable
A node that switches the class of an incoming job based on a probability table
- See Also:
-
Field Summary
FieldsFields inherited from class jline.lang.nodes.Node
dropStrategy, input, model, nodeIndex, output, server, state, statefulIdx, stationIdx -
Constructor Summary
ConstructorsConstructorDescriptionClassSwitch(Network model, String name) ClassSwitch(Network model, String name, Matrix csFun) -
Method Summary
Modifier and TypeMethodDescriptionvoidremoveJobClass(JobClass jobClass) Removes all per-class configuration referencing the given job class from this node.voidsetClassSwitchingMatrix(ClassSwitchMatrix csMatrix) voidsetProbRouting(JobClass jobClass, Node destination, double probability) Sets probabilistic routing for a job class to a specific destination.Methods inherited from class jline.lang.nodes.Node
getAttribute, getCap, getClassCap, getDropStrategy, getInput, getModel, getNodeIndex, getOutput, getOutputStrategies, getRoutingStrategy, getSections, getServer, getState, getStatefulIdx, getStationIdx, isReferenceStation, isStateful, printSummary, reset, resetRouting, setKChoicesRouting, setModel, setNodeIdx, setRLRouting, setRouting, setRouting, setState, setStationIdx
-
Field Details
-
autoAdded
public boolean autoAdded -
schedPolicy
-
schedStrategy
-
-
Constructor Details
-
ClassSwitch
-
ClassSwitch
-
-
Method Details
-
initClassSwitchMatrix
-
setClassSwitchingMatrix
-
setProbRouting
Description copied from class:NodeSets probabilistic routing for a job class to a specific destination.- Overrides:
setProbRoutingin classNode- Parameters:
jobClass- the job class to configure routing fordestination- the destination nodeprobability- the routing probability (0.0 to 1.0)
-
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 classNode- Parameters:
jobClass- the job class being removed from the model
-