Enum RoutingStrategy

  • All Implemented Interfaces:

    
    public enum RoutingStrategy
    
                        

    Enumeration of routing strategies that determine how jobs are dispatched to downstream stations.

    Routing strategies control the decision-making process when a job completes service at a station and multiple downstream stations are available. These strategies implement different load balancing, fairness, and optimization policies.

    Common strategies include:

    • RAND - Random selection with equal probability
    • PROB - Probabilistic routing with specified probabilities
    • RROBIN - Round-robin cycling through destinations
    • JSQ - Join the Shortest Queue for load balancing
    Since:

    1.0

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      RAND

      Random routing - destination selected uniformly at random

      PROB

      Probabilistic routing - destination selected according to specified probabilities

      RROBIN

      Round Robin - destinations visited in cyclic order

      WRROBIN

      Weighted Round Robin - cyclic routing with weighted visits

      JSQ

      Join Shortest Queue - route to destination with fewest waiting jobs

      FIRING

      Firing routing - used for transitions in Petri net models

      KCHOICES

      Power of K choices - select best among K randomly chosen destinations

      RL

      Reinforcement Learning - adaptive routing based on learned policies

      DISABLED

      Disabled routing - no routing allowed (jobs are dropped)

    • Method Summary

      Modifier and Type Method Description
      static String toFeature(RoutingStrategy routing) Converts a RoutingStrategy enum value to a feature string for analysis.
      static Array<RoutingStrategy> values() Returns an array containing the constants of this enum type, in the order they're declared.
      static RoutingStrategy valueOf(String name) Returns the enum constant of this type with the specified name.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • toFeature

         static String toFeature(RoutingStrategy routing)

        Converts a RoutingStrategy enum value to a feature string for analysis.

        Parameters:
        routing - the routing strategy to convert
        Returns:

        the feature string representation, or empty string if not mapped

      • values

         static Array<RoutingStrategy> values()

        Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.

        Returns:

        an array containing the constants of this enum type, in the order they're declared

      • valueOf

         static RoutingStrategy valueOf(String name)

        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

        Returns:

        the enum constant with the specified name