Package jline.lang.layered
Class ActivityPrecedence
java.lang.Object
jline.lang.layered.ActivityPrecedence
A class modeling precedence relationships among activities
-
Field Summary
-
Constructor Summary
ConstructorDescriptionActivityPrecedence
(boolean isActivity, List<Activity> preActs, List<Activity> postActs) Constructs an ActivityPrecedence using activity objects instead of strings, assuming PRE_SEQ as preType and POST_SEQ as postType.ActivityPrecedence
(boolean isActivity, List<Activity> preActs, List<Activity> postActs, String preType) Constructs an ActivityPrecedence using activity objects instead of strings, assuming POST_SEQ as postType.ActivityPrecedence
(boolean isActivity, List<Activity> preActs, List<Activity> postActs, String preType, String postType) Constructs an ActivityPrecedence using activity objects instead of strings, without preParams and postParams.ActivityPrecedence
(boolean isActivity, List<Activity> preActs, List<Activity> postActs, String preType, String postType, Matrix preParams) Constructs an ActivityPrecedence using activity objects instead of strings, without postParams.ActivityPrecedence
(boolean isActivity, List<Activity> preActs, List<Activity> postActs, String preType, String postType, Matrix preParams, Matrix postParams) Constructs an ActivityPrecedence using activity objects instead of strings, with all parameters.ActivityPrecedence
(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 ActivityPrecedence
Creates an ActivityPrecedence object representing an AND-fork relationship.static ActivityPrecedence
Creates an ActivityPrecedence object representing an AND-fork relationship with a specified fanout matrix.static ActivityPrecedence
Creates an ActivityPrecedence object representing an AND-join relationship.static ActivityPrecedence
Creates an ActivityPrecedence object representing an AND-join relationship with a specified quorum matrix.static ActivityPrecedence
CacheAccess
(String preAct, List<String> postActs) Creates an ActivityPrecedence object representing a cache access relationship.static int
getPrecedenceId
(String precedence) Retrieves the precedence ID based on the precedence type string.static ActivityPrecedence
Creates an ActivityPrecedence object representing a loop relationship.static ActivityPrecedence
Creates an ActivityPrecedence object representing a loop relationship.static ActivityPrecedence
Creates an ActivityPrecedence object representing a loop relationship.static ActivityPrecedence
Creates an ActivityPrecedence object representing a loop relationship.static ActivityPrecedence
/** Creates an ActivityPrecedence object representing an OR-fork relationship with a specified probability matrix.static ActivityPrecedence
Creates an ActivityPrecedence object representing an OR-join relationship.static ActivityPrecedence
Creates an ActivityPrecedence object representing a sequence relationship.static ActivityPrecedence[]
Creates an array of ActivityPrecedence objects representing a sequence.static ActivityPrecedence
Creates 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 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
-
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 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
-
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 activitiespostActs
- the list of following activitiespreType
- 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 activitiespostActs
- the list of following activitiespreType
- 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 activitiespostActs
- the list of following activities
-
ActivityPrecedence
public ActivityPrecedence(boolean isActivity, List<Activity> preActs, List<Activity> postActs, String preType, String postType, Matrix preParams, Matrix postParams) Constructs an ActivityPrecedence using activity objects instead of strings, with all parameters.- Parameters:
isActivity
- flag to indicate if the parameters are activity objectspreActs
- 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
-
ActivityPrecedence
public ActivityPrecedence(boolean isActivity, List<Activity> preActs, List<Activity> postActs, String preType, String postType, Matrix preParams) Constructs an ActivityPrecedence using activity objects instead of strings, without postParams.- Parameters:
isActivity
- flag to indicate if the parameters are activity objectspreActs
- 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
-
ActivityPrecedence
public ActivityPrecedence(boolean isActivity, List<Activity> preActs, List<Activity> postActs, String preType, String postType) Constructs an ActivityPrecedence using activity objects instead of strings, without preParams and postParams.- Parameters:
isActivity
- flag to indicate if the parameters are activity objectspreActs
- 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
-
ActivityPrecedence
public ActivityPrecedence(boolean isActivity, List<Activity> preActs, List<Activity> postActs, String preType) Constructs an ActivityPrecedence using activity objects instead of strings, assuming POST_SEQ as postType.- Parameters:
isActivity
- flag to indicate if the parameters are activity objectspreActs
- the list of preceding activitiespostActs
- the list of following activitiespreType
- the type of the precedence relationship before the activity
-
ActivityPrecedence
Constructs an ActivityPrecedence using activity objects instead of strings, assuming PRE_SEQ as preType and POST_SEQ as postType.- Parameters:
isActivity
- flag to indicate if the parameters are activity objectspreActs
- the list of preceding activitiespostActs
- the list of following activities
-
-
Method Details
-
Serial
Creates an array of ActivityPrecedence objects representing a sequence.- Parameters:
varargin
- the list of activity names- Returns:
- an array of ActivityPrecedence objects
-
getPrecedenceId
Retrieves the precedence ID based on the precedence type string.- Parameters:
precedence
- the precedence type string- Returns:
- the precedence ID
-
Sequence
Creates an ActivityPrecedence object representing a sequence relationship.- Parameters:
preAct
- the preceding activitypostAct
- 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
-
OrJoin
Creates an ActivityPrecedence object representing an OR-join relationship.- Parameters:
preActs
- the list of preceding activitiespostAct
- the following activity- 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
-
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
-
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
-
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
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
-
CacheAccess
Creates an ActivityPrecedence object representing a cache access relationship.- Parameters:
preAct
- the preceding activitypostActs
- the list of following activities- Returns:
- an ActivityPrecedence object
-