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 TypeMethodDescriptionvoidsetClassSwitchingMatrix(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)
-