Enum RoutingStrategy

java.lang.Object
java.lang.Enum<RoutingStrategy>
jline.lang.constant.RoutingStrategy
All Implemented Interfaces:
Serializable, Comparable<RoutingStrategy>, java.lang.constant.Constable

public enum RoutingStrategy extends 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
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Disabled routing - no routing allowed (jobs are dropped)
    Firing routing - used for transitions in Petri net models
    Join Shortest Queue - route to destination with fewest waiting jobs
    Power of K choices - select best among K randomly chosen destinations
    Probabilistic routing - destination selected according to specified probabilities
    Random routing - destination selected uniformly at random
    Reinforcement Learning - adaptive routing based on learned policies
    Round Robin - destinations visited in cyclic order
    Weighted Round Robin - cyclic routing with weighted visits
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    Converts a RoutingStrategy enum value to a feature string for analysis.
    Returns the enum constant of this type with the specified name.
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • RAND

      public static final RoutingStrategy RAND
      Random routing - destination selected uniformly at random
    • PROB

      public static final RoutingStrategy PROB
      Probabilistic routing - destination selected according to specified probabilities
    • RROBIN

      public static final RoutingStrategy RROBIN
      Round Robin - destinations visited in cyclic order
    • WRROBIN

      public static final RoutingStrategy WRROBIN
      Weighted Round Robin - cyclic routing with weighted visits
    • JSQ

      public static final RoutingStrategy JSQ
      Join Shortest Queue - route to destination with fewest waiting jobs
    • FIRING

      public static final RoutingStrategy FIRING
      Firing routing - used for transitions in Petri net models
    • KCHOICES

      public static final RoutingStrategy KCHOICES
      Power of K choices - select best among K randomly chosen destinations
    • RL

      public static final RoutingStrategy RL
      Reinforcement Learning - adaptive routing based on learned policies
    • DISABLED

      public static final RoutingStrategy DISABLED
      Disabled routing - no routing allowed (jobs are dropped)
  • Method Details

    • values

      public static RoutingStrategy[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public 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.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • toFeature

      public 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