Package jline.lang.layered
Class ActivityPrecedence
java.lang.Object
jline.lang.layered.ActivityPrecedence
A class modeling precedence relationships among activities
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionActivityPrecedence(List<String> preActs, List<String> postActs) Constructs an ActivityPrecedence with the specified parameters, assuming PRE_SEQ as preType and POST_SEQ as postType.Constructs an ActivityPrecedence with the specified parameters, assuming POST_SEQ as postType.Constructs an ActivityPrecedence with the specified parameters, without preParams and postParams.ActivityPrecedence(List<String> preActs, List<String> postActs, String preType, String postType, Matrix preParams) Constructs an ActivityPrecedence with the specified parameters, without postParams.ActivityPrecedence(List<String> preActs, List<String> postActs, String preType, String postType, Matrix preParams, Matrix postParams) Constructs an ActivityPrecedence with the specified parameters. -
Method Summary
Modifier and TypeMethodDescriptionstatic ActivityPrecedenceCreates an ActivityPrecedence object representing an AND-fork relationship.static ActivityPrecedenceCreates an ActivityPrecedence object representing an AND-fork relationship with a specified fanout matrix.static ActivityPrecedenceCreates an ActivityPrecedence object representing an AND-fork relationship.static ActivityPrecedenceCreates an ActivityPrecedence object representing an AND-fork relationship with a specified fanout matrix.static ActivityPrecedenceCreates an ActivityPrecedence object representing an AND-join relationship.static ActivityPrecedenceCreates an ActivityPrecedence object representing an AND-join relationship with a specified quorum matrix.static ActivityPrecedenceCreates an ActivityPrecedence object representing an AND-join relationship.static ActivityPrecedenceCreates an ActivityPrecedence object representing an AND-join relationship with a specified quorum matrix.static ActivityPrecedenceCacheAccess(String preAct, List<String> postActs) Creates an ActivityPrecedence object representing a cache access relationship.static ActivityPrecedenceCacheAccess(Activity preAct, List<Activity> postActs) Creates an ActivityPrecedence object representing a cache access relationship.static ActivityPrecedencefromActivities(List<Activity> preActs, List<Activity> postActs) Creates an ActivityPrecedence with Activity objects, assuming PRE_SEQ as preType and POST_SEQ as postType.static ActivityPrecedenceCreates an ActivityPrecedence with Activity objects, assuming POST_SEQ as postType.static ActivityPrecedenceCreates an ActivityPrecedence with Activity objects, without preParams and postParams.static ActivityPrecedencefromActivities(List<Activity> preActs, List<Activity> postActs, String preType, String postType, Matrix preParams) Creates an ActivityPrecedence with Activity objects, without postParams.static ActivityPrecedencefromActivities(List<Activity> preActs, List<Activity> postActs, String preType, String postType, Matrix preParams, Matrix postParams) Creates an ActivityPrecedence with Activity objects.Returns the list of following activity names.Returns the parameters for the following activities.Returns the type of the precedence relationship after the activity.Returns the list of preceding activity names.static intgetPrecedenceId(String precedence) Retrieves the precedence ID based on the precedence type string.Returns the parameters for the preceding activities.Returns the type of the precedence relationship before the activity.static ActivityPrecedenceCreates an ActivityPrecedence object representing a loop relationship.static ActivityPrecedenceCreates an ActivityPrecedence object representing a loop relationship.static ActivityPrecedenceCreates an ActivityPrecedence object representing a loop relationship.static ActivityPrecedencestatic ActivityPrecedenceCreates an ActivityPrecedence object representing a loop relationship.static ActivityPrecedenceCreates an ActivityPrecedence object representing a loop relationship.static ActivityPrecedencestatic ActivityPrecedenceCreates an ActivityPrecedence object representing a loop relationship.static ActivityPrecedenceCreates an ActivityPrecedence object representing a loop relationship.static ActivityPrecedenceCreates an ActivityPrecedence object representing a loop relationship.static ActivityPrecedenceCreates an ActivityPrecedence object representing an OR-fork relationship with a specified probability matrix.static ActivityPrecedenceCreates an ActivityPrecedence object representing an OR-fork relationship with a specified probability matrix.static ActivityPrecedenceCreates an ActivityPrecedence object representing an OR-join relationship.static ActivityPrecedenceCreates an ActivityPrecedence object representing an OR-join relationship.static ActivityPrecedence[]Creates an array of ActivityPrecedence objects representing a sequence from varargs.static ActivityPrecedenceCreates an ActivityPrecedence object representing a sequence relationship.static ActivityPrecedence[]Creates an array of ActivityPrecedence objects representing a sequence.static ActivityPrecedence[]Creates an array of ActivityPrecedence objects representing a sequence from varargs.static ActivityPrecedenceCreates an ActivityPrecedence object representing a sequence relationship.static ActivityPrecedenceCreates an ActivityPrecedence object representing an XOR relationship.static ActivityPrecedenceCreates an ActivityPrecedence object representing an XOR relationship.
-
Field Details
-
preActs
-
postActs
-
preType
-
postType
-
preParams
-
postParams
-
-
Constructor Details
-
ActivityPrecedence
public ActivityPrecedence(List<String> preActs, List<String> postActs, String preType, String postType, Matrix preParams, Matrix postParams) Constructs an ActivityPrecedence with the specified parameters.- Parameters:
preActs- the list of preceding activity namespostActs- the list of following activity namespreType- the type of the precedence relationship before the activitypostType- the type of the precedence relationship after the activitypreParams- the parameters for the preceding activitiespostParams- the parameters for the following activities
-
ActivityPrecedence
public ActivityPrecedence(List<String> preActs, List<String> postActs, String preType, String postType, Matrix preParams) Constructs an ActivityPrecedence with the specified parameters, without postParams.- Parameters:
preActs- the list of preceding activity namespostActs- the list of following activity namespreType- the type of the precedence relationship before the activitypostType- the type of the precedence relationship after the activitypreParams- the parameters for the preceding activities
-
ActivityPrecedence
public ActivityPrecedence(List<String> preActs, List<String> postActs, String preType, String postType) Constructs an ActivityPrecedence with the specified parameters, without preParams and postParams.- Parameters:
preActs- the list of preceding activity namespostActs- the list of following activity namespreType- the type of the precedence relationship before the activitypostType- the type of the precedence relationship after the activity
-
ActivityPrecedence
Constructs an ActivityPrecedence with the specified parameters, assuming POST_SEQ as postType.- Parameters:
preActs- the list of preceding activity namespostActs- the list of following activity namespreType- the type of the precedence relationship before the activity
-
ActivityPrecedence
Constructs an ActivityPrecedence with the specified parameters, assuming PRE_SEQ as preType and POST_SEQ as postType.- Parameters:
preActs- the list of preceding activity namespostActs- the list of following activity names
-
-
Method Details
-
fromActivities
public static ActivityPrecedence fromActivities(List<Activity> preActs, List<Activity> postActs, String preType, String postType, Matrix preParams, Matrix postParams) Creates an ActivityPrecedence with Activity objects.- Parameters:
preActs- the list of preceding activitiespostActs- the list of following activitiespreType- the type of the precedence relationship before the activitypostType- the type of the precedence relationship after the activitypreParams- the parameters for the preceding activitiespostParams- the parameters for the following activities- Returns:
- an ActivityPrecedence object
-
fromActivities
public static ActivityPrecedence fromActivities(List<Activity> preActs, List<Activity> postActs, String preType, String postType, Matrix preParams) Creates an ActivityPrecedence with Activity objects, without postParams.- Parameters:
preActs- the list of preceding activitiespostActs- the list of following activitiespreType- the type of the precedence relationship before the activitypostType- the type of the precedence relationship after the activitypreParams- the parameters for the preceding activities- Returns:
- an ActivityPrecedence object
-
fromActivities
public static ActivityPrecedence fromActivities(List<Activity> preActs, List<Activity> postActs, String preType, String postType) Creates an ActivityPrecedence with Activity objects, without preParams and postParams.- Parameters:
preActs- the list of preceding activitiespostActs- the list of following activitiespreType- the type of the precedence relationship before the activitypostType- the type of the precedence relationship after the activity- Returns:
- an ActivityPrecedence object
-
fromActivities
public static ActivityPrecedence fromActivities(List<Activity> preActs, List<Activity> postActs, String preType) Creates an ActivityPrecedence with Activity objects, assuming POST_SEQ as postType.- Parameters:
preActs- the list of preceding activitiespostActs- the list of following activitiespreType- the type of the precedence relationship before the activity- Returns:
- an ActivityPrecedence object
-
fromActivities
Creates an ActivityPrecedence with Activity objects, assuming PRE_SEQ as preType and POST_SEQ as postType.- Parameters:
preActs- the list of preceding activitiespostActs- the list of following activities- Returns:
- an ActivityPrecedence object
-
AndFork
Creates an ActivityPrecedence object representing an AND-fork relationship.- Parameters:
preAct- the preceding activitypostActs- the list of following activities- Returns:
- an ActivityPrecedence object
-
AndFork
Creates an ActivityPrecedence object representing an AND-fork relationship.- Parameters:
preAct- the preceding activitypostActs- the list of following activities- Returns:
- an ActivityPrecedence object
-
AndFork
Creates an ActivityPrecedence object representing an AND-fork relationship with a specified fanout matrix.- Parameters:
preAct- the preceding activitypostActs- the list of following activitiesfanout- the fanout matrix- Returns:
- an ActivityPrecedence object
-
AndFork
Creates an ActivityPrecedence object representing an AND-fork relationship with a specified fanout matrix.- Parameters:
preAct- the preceding activitypostActs- the list of following activitiesfanout- the fanout matrix- Returns:
- an ActivityPrecedence object
-
AndJoin
Creates an ActivityPrecedence object representing an AND-join relationship.- Parameters:
preActs- the list of preceding activitiespostAct- the following activity- Returns:
- an ActivityPrecedence object
-
AndJoin
Creates an ActivityPrecedence object representing an AND-join relationship.- Parameters:
preActs- the list of preceding activitiespostAct- the following activity- Returns:
- an ActivityPrecedence object
-
AndJoin
Creates an ActivityPrecedence object representing an AND-join relationship with a specified quorum matrix.- Parameters:
preActs- the list of preceding activitiespostAct- the following activityquorum- the quorum matrix- Returns:
- an ActivityPrecedence object
-
AndJoin
Creates an ActivityPrecedence object representing an AND-join relationship with a specified quorum matrix.- Parameters:
preActs- the list of preceding activitiespostAct- the following activityquorum- the quorum matrix- Returns:
- an ActivityPrecedence object
-
CacheAccess
Creates an ActivityPrecedence object representing a cache access relationship.- Parameters:
preAct- the preceding activitypostActs- the list of following activities- Returns:
- an ActivityPrecedence object
-
CacheAccess
Creates an ActivityPrecedence object representing a cache access relationship.- Parameters:
preAct- the preceding activitypostActs- the list of following activities- Returns:
- an ActivityPrecedence object
-
Loop
public static ActivityPrecedence Loop(Activity preAct, Activity loopAct, Activity endAct, double nloops) Creates an ActivityPrecedence object representing a loop relationship.- Parameters:
preAct- the preceding activityloopAct- the activity that is loopedendAct- the activity after the loop completesnloops- the number of loops- Returns:
- an ActivityPrecedence object
-
Loop
Creates an ActivityPrecedence object representing a loop relationship.- Parameters:
preAct- the preceding activityloopAct- the activity that is loopedendAct- the activity after the loop completesnloops- the number of loops- Returns:
- an ActivityPrecedence object
-
Loop
Creates an ActivityPrecedence object representing a loop relationship.- Parameters:
preAct- the preceding activitypostActs- a list with loopAct and endAct (see 4-parameter Loop constructor)nloops- the number of loops- Returns:
- an ActivityPrecedence object
-
Loop
Creates an ActivityPrecedence object representing a loop relationship.- Parameters:
preAct- the preceding activitypostActs- a list with loopAct and endAct (see 4-parameter Loop constructor)nloops- the number of loops- Returns:
- an ActivityPrecedence object
-
Loop
-
Loop
-
Loop
Creates an ActivityPrecedence object representing a loop relationship.- Parameters:
preAct- the preceding activitypostActs- a list with loopAct and endAct (see 4-parameter Loop constructor)nloops- the number of loops- Returns:
- an ActivityPrecedence object
-
Loop
Creates an ActivityPrecedence object representing a loop relationship.- Parameters:
preAct- the preceding activitypostActs- a list with loopAct and endAct (see 4-parameter Loop constructor)nloops- the number of loops- Returns:
- an ActivityPrecedence object
-
Loop
public static ActivityPrecedence Loop(Activity preAct, Activity loopAct, Activity endAct, Matrix nloops) Creates an ActivityPrecedence object representing a loop relationship.- Parameters:
preAct- the preceding activityloopAct- the activity that is loopedendAct- the activity after the loop completesnloops- the number of loops- Returns:
- an ActivityPrecedence object
-
Loop
Creates an ActivityPrecedence object representing a loop relationship.- Parameters:
preAct- the preceding activityloopAct- the activity that is loopedendAct- the activity after the loop completesnloops- the number of loops- Returns:
- an ActivityPrecedence object
-
OrFork
Creates an ActivityPrecedence object representing an OR-fork relationship with a specified probability matrix.- Parameters:
preAct- the preceding activitypostActs- the list of following activitiesprobs- the probability matrix- Returns:
- an ActivityPrecedence object
-
OrFork
Creates an ActivityPrecedence object representing an OR-fork relationship with a specified probability matrix.- Parameters:
preAct- the preceding activitypostActs- the list of following activitiesprobs- the probability matrix- Returns:
- an ActivityPrecedence object
-
OrJoin
Creates an ActivityPrecedence object representing an OR-join relationship.- Parameters:
preActs- the list of preceding activitiespostAct- the following activity- Returns:
- an ActivityPrecedence object
-
OrJoin
Creates an ActivityPrecedence object representing an OR-join relationship.- Parameters:
preActs- the list of preceding activitiespostAct- the following activity- Returns:
- an ActivityPrecedence object
-
Serial
Creates an array of ActivityPrecedence objects representing a sequence.- Parameters:
varargin- the list of activity names- Returns:
- an array of ActivityPrecedence objects
-
Serial
Creates an ActivityPrecedence object representing a sequence relationship.- Parameters:
preAct- the preceding activitypostAct- the following activity- Returns:
- an ActivityPrecedence object
-
Serial
Creates an ActivityPrecedence object representing a sequence relationship.- Parameters:
preAct- the preceding activitypostAct- the following activity- Returns:
- an ActivityPrecedence object
-
Serial
Creates an array of ActivityPrecedence objects representing a sequence from varargs.- Parameters:
activities- the activities to form a serial sequence- Returns:
- an array of ActivityPrecedence objects
-
Serial
Creates an array of ActivityPrecedence objects representing a sequence from varargs.- Parameters:
activities- the activity names to form a serial sequence- Returns:
- an array of ActivityPrecedence objects
-
Xor
Creates an ActivityPrecedence object representing an XOR relationship.- Parameters:
preAct- the preceding activitypostActs- the list of following activitiesprobs- the probability matrix- Returns:
- an ActivityPrecedence object
-
Xor
Creates an ActivityPrecedence object representing an XOR relationship.- Parameters:
preAct- the preceding activitypostActs- the list of following activitiesprobs- the probability matrix- Returns:
- an ActivityPrecedence object
-
getPreActs
Returns the list of preceding activity names.- Returns:
- the list of preceding activity names
-
getPostActs
Returns the list of following activity names.- Returns:
- the list of following activity names
-
getPreType
Returns the type of the precedence relationship before the activity.- Returns:
- the pre-type string
-
getPostType
Returns the type of the precedence relationship after the activity.- Returns:
- the post-type string
-
getPreParams
Returns the parameters for the preceding activities.- Returns:
- the pre-parameters matrix
-
getPostParams
Returns the parameters for the following activities.- Returns:
- the post-parameters matrix
-
getPrecedenceId
Retrieves the precedence ID based on the precedence type string.- Parameters:
precedence- the precedence type string- Returns:
- the precedence ID
-