Package jline.lang.constant
Class ActivityPrecedenceType
java.lang.Object
jline.lang.constant.ActivityPrecedenceType
Constants for defining activity precedences in LayeredNetwork models
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ID_POST_AND
public static final int ID_POST_AND- See Also:
-
ID_POST_CACHE
public static final int ID_POST_CACHE- See Also:
-
ID_POST_LOOP
public static final int ID_POST_LOOP- See Also:
-
ID_POST_OR
public static final int ID_POST_OR- See Also:
-
ID_POST_SEQ
public static final int ID_POST_SEQ- See Also:
-
ID_PRE_AND
public static final int ID_PRE_AND- See Also:
-
ID_PRE_OR
public static final int ID_PRE_OR- See Also:
-
ID_PRE_SEQ
public static final int ID_PRE_SEQ- See Also:
-
POST_AND
- See Also:
-
POST_CACHE
- See Also:
-
POST_LOOP
- See Also:
-
POST_OR
- See Also:
-
POST_SEQ
- See Also:
-
PRE_AND
- See Also:
-
PRE_OR
- See Also:
-
PRE_SEQ
- See Also:
-
-
Constructor Details
-
ActivityPrecedenceType
public ActivityPrecedenceType()
-
-
Method Details
-
toFeature
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
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
-