Class ClassSwitch

All Implemented Interfaces:
Serializable, Copyable

public class ClassSwitch extends Node implements Serializable
A node that switches the class of an incoming job based on a probability table
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • initClassSwitchMatrix

      public ClassSwitchMatrix initClassSwitchMatrix()
    • setClassSwitchingMatrix

      public void setClassSwitchingMatrix(ClassSwitchMatrix csMatrix)
    • setProbRouting

      public void setProbRouting(JobClass jobClass, Node destination, double probability)
      Description copied from class: Node
      Sets probabilistic routing for a job class to a specific destination.
      Overrides:
      setProbRouting in class Node
      Parameters:
      jobClass - the job class to configure routing for
      destination - the destination node
      probability - the routing probability (0.0 to 1.0)
    • removeJobClass

      public void removeJobClass(JobClass jobClass)
      Description copied from class: Node
      Removes all per-class configuration referencing the given job class from this node. The base implementation drops the class's output (routing) strategies; subclasses extend it to drop service, capacity, arrival and class-switching configuration. Called by Network.removeClass(jline.lang.JobClass).
      Overrides:
      removeJobClass in class Node
      Parameters:
      jobClass - the job class being removed from the model