Class ClassSwitchRoutingStrategy
java.lang.Object
NetStrategies.RoutingStrategy
NetStrategies.RoutingStrategies.ClassSwitchRoutingStrategy
- All Implemented Interfaces:
AutoCheck
Routing strategy used when a job changes its class: it selects the destination station of the switched job.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetOutNode(NetNode ownerNode, JobClass jobClass) Deprecated.getOutNode(NodeSection section, Job job) voidsetRandomEngine(RandomEngine randomEngine) Methods inherited from class RoutingStrategy
check, getOutNode
-
Constructor Details
-
ClassSwitchRoutingStrategy
public ClassSwitchRoutingStrategy(ClassSwitchRoutingParameter[] entries) throws IncorrectDistributionParameterException
-
-
Method Details
-
getOutNode
Deprecated.This method should be overridden to implement a specific strategy.- Specified by:
getOutNodein classRoutingStrategy- Parameters:
ownerNode- Owner node of the output section.jobClass- Class of current job to be routed.- Returns:
- Selected node.
-
getOutNode
- Overrides:
getOutNodein classRoutingStrategy
-
setRandomEngine
-