Package jline.lang.nodes
Class ClassSwitch
-
- All Implemented Interfaces:
-
java.io.Serializable,jline.lang.Copyable
public class ClassSwitch extends Node implements Serializable
A node that switches the class of an incoming job based on a probability table
-
-
Field Summary
Fields Modifier and Type Field Description public booleanautoAddedprotected SchedStrategyTypeschedPolicyprotected SchedStrategyschedStrategypublic final NodeAttributeattributepublic Networkmodelprotected InputSectioninputprotected OutputSectionoutputprotected ServiceSectionserverprotected DropStrategydropStrategyprotected intstatefulIdxprotected intnodeIndexprotected intstationIdxprotected Matrixstateprotected Stringname
-
Constructor Summary
Constructors Constructor Description ClassSwitch(Network model, String name)ClassSwitch(Network model, String name, Matrix csFun)
-
Method Summary
Modifier and Type Method Description ClassSwitchMatrixinitClassSwitchMatrix()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, setModel, setNodeIdx, setRouting, setRouting, setState, setStationIdx -
Methods inherited from class jline.lang.Element
getName, setName -
Methods inherited from class jline.lang.Copyable
copy -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
initClassSwitchMatrix
ClassSwitchMatrix initClassSwitchMatrix()
-
setClassSwitchingMatrix
void setClassSwitchingMatrix(ClassSwitchMatrix csMatrix)
-
setProbRouting
void setProbRouting(JobClass jobClass, Node destination, double probability)
Sets probabilistic routing for a job class to a specific destination.
- Parameters:
jobClass- the job class to configure routing fordestination- the destination nodeprobability- the routing probability (0.0 to 1.
-
-
-
-