Package jline.lang.nodes
Class Router
-
- All Implemented Interfaces:
-
java.io.Serializable,jline.lang.Copyable
public class Router extends StatefulNode implements Serializable
A node that routes jobs without imposing any delay
-
-
Field Summary
Fields Modifier and Type Field Description protected intcapprotected intnumberOfServersprotected SchedStrategyTypeschedPolicyprotected SchedStrategyschedStrategypublic Matrixstatepublic MatrixstatePriorpublic final NodeAttributeattributepublic Networkmodelprotected InputSectioninputprotected OutputSectionoutputprotected ServiceSectionserverprotected DropStrategydropStrategyprotected intstatefulIdxprotected intnodeIndexprotected intstationIdxprotected Stringname
-
Method Summary
Modifier and Type Method Description SchedStrategygetSchedStrategy()Gets the scheduling strategy used by this router. DistributiongetServiceProcess(JobClass jobClass)Gets the service distribution for a specific job class. voidsetSchedPolicy(SchedStrategyType schedPolicy)Sets the scheduling policy type for this router. voidsetService(JobClass jobClass, Distribution distribution)Sets the service distribution for a specific job class. -
Methods inherited from class jline.lang.nodes.StatefulNode
clearState, getNumberOfServers, getState, getStatePrior, getStateSpace, getStatefulIndex, resetStateSpace, setState, setState, setStatePrior, setStateSpace -
Methods inherited from class jline.lang.nodes.Node
getAttribute, getCap, getClassCap, getDropStrategy, getInput, getModel, getNodeIndex, getOutput, getOutputStrategies, getRoutingStrategy, getSections, getServer, getStatefulIdx, getStationIdx, isReferenceStation, isStateful, printSummary, reset, resetRouting, setModel, setNodeIdx, setProbRouting, setRouting, setRouting, 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
-
getSchedStrategy
SchedStrategy getSchedStrategy()
Gets the scheduling strategy used by this router.
- Returns:
the scheduling strategy
-
getServiceProcess
Distribution getServiceProcess(JobClass jobClass)
Gets the service distribution for a specific job class.
- Parameters:
jobClass- the job class to query- Returns:
the service distribution for the job class
-
setSchedPolicy
void setSchedPolicy(SchedStrategyType schedPolicy)
Sets the scheduling policy type for this router.
- Parameters:
schedPolicy- the scheduling policy type (PR for preemptive, NP for non-preemptive)
-
setService
void setService(JobClass jobClass, Distribution distribution)
Sets the service distribution for a specific job class.
- Parameters:
jobClass- the job class to configuredistribution- the service distribution to set
-
-
-
-