Class EmpiricalStrategy

java.lang.Object
NetStrategies.RoutingStrategy
NetStrategies.RoutingStrategies.EmpiricalStrategy
All Implemented Interfaces:
AutoCheck

public class EmpiricalStrategy extends RoutingStrategy
The node, into which job must be routed, is chosen using an empirical strategy. An empirical strategy is based on an empirical distribution, that is a distribution constructed from the data provided by the user.
Author:
Federico Granata, Stefano Omini, Bertoli Marco
  • Constructor Details

  • Method Details

    • check

      public boolean check()
      It controls whether the distribution is correct or not. For the empirical distribution, the parameter is correct if the sum of the routing probabilities are greater than zero and they sum to 1.0.
      Specified by:
      check in interface AutoCheck
      Overrides:
      check in class RoutingStrategy
    • getOutNode

      public NetNode getOutNode(NetNode ownerNode, JobClass jobClass)
      Gets the output node, into which the job must be routed, using an empirical strategy.
      Specified by:
      getOutNode in class RoutingStrategy
      Parameters:
      ownerNode - Owner node of the output section.
      jobClass - Class of current job to be routed.
      Returns:
      Selected node.
    • setRandomEngine

      public void setRandomEngine(RandomEngine randomEngine)