Class ActivityPrecedenceType

java.lang.Object
jline.lang.constant.ActivityPrecedenceType

public class ActivityPrecedenceType extends Object
Constants for defining activity precedences in LayeredNetwork models
  • Field Details

  • Constructor Details

    • ActivityPrecedenceType

      public ActivityPrecedenceType()
  • Method Details

    • toFeature

      public static String toFeature(String precedenceType)
      The FeatureSet entry naming a precedence, as ActivityPrecedence stores it. The argument is the String an ActivityPrecedence carries in preType / postType, not an instance of this constant holder: this class has no instances, so the previous signature could only ever be passed null, and every branch compared a String against it and fell through to the throw. The names returned are the REGISTRY names (ActivityPrecedence_*), not the class name with "Type" in it, which matched no registry entry either. POST_LOOP has no registry entry -- LINE models a loop by its pseudo-task, not by a declared capability -- so it returns the empty string, the same "no gated capability" convention the SchedStrategy and RoutingStrategy helpers use for their internal markers.
      Parameters:
      precedenceType - the precedence type string
      Returns:
      the registry name, or "" when the type gates nothing
    • toId

      public static int toId(String precedenceType)
      The numeric id of a precedence, as ActivityPrecedence stores its type. Takes the type String for the same reason toFeature does: this class has no instances, so the previous signature could only be passed null and every branch fell through to the throw.
      Parameters:
      precedenceType - the precedence type string
      Returns:
      the ID_ constant for that type