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

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      Router(Network model, String name) Creates a new router node that routes jobs without delay.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      SchedStrategy getSchedStrategy() Gets the scheduling strategy used by this router.
      Distribution getServiceProcess(JobClass jobClass) Gets the service distribution for a specific job class.
      void setSchedPolicy(SchedStrategyType schedPolicy) Sets the scheduling policy type for this router.
      void setService(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
    • Constructor Detail

      • Router

        Router(Network model, String name)
        Creates a new router node that routes jobs without delay.
        Parameters:
        model - the network model to add this router to
        name - the name for this router node
    • Method Detail

      • 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 configure
        distribution - the service distribution to set