|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ActivityPipeline
An activity pipeline describes a one or more activities that are connected together by their inputs and outputs. In mathematical terms, an activity pipeline is a directed, edge-ordered connected graph.
| Method Summary | |
|---|---|
void |
addActivity(ActivityDescriptor descriptor)
Adds an activity to the pipeline. |
void |
connect(ActivityDescriptor sourceActivity,
java.lang.String outputName,
ActivityDescriptor targetActivity,
java.lang.String inputName)
Creates a new connection between two activities. |
boolean |
containsActivity(ActivityDescriptor activity)
Determines whether or not the pipeline contains the specified activity descriptor. |
boolean |
containsActivityInstance(ActivityInstanceName instanceName)
Indicates whether or not the activity pipeline contains an activity with the specified instance name. |
boolean |
containsPipe(java.lang.String pipeName)
Determines whether the activity pipeline contains a pipe with the specified name connecting two activities. |
java.util.Set |
getActivities()
Get the set of activities contained in the pipeline. |
ActivityDescriptor |
getActivityInstance(ActivityInstanceName instanceName)
Gets the activity descriptor for the activity with the specified instance name, if it is contained in the pipeline. |
Activity |
getParent()
Gets the parent activity of this pipeline. |
boolean |
hasParent()
Gets whether or not this pipeline has a parent activity. |
void |
setParent(Activity parentActivity)
Sets the parent activty of this pipeline. |
| Method Detail |
|---|
java.util.Set getActivities()
ActivityDescriptor objects
void connect(ActivityDescriptor sourceActivity,
java.lang.String outputName,
ActivityDescriptor targetActivity,
java.lang.String inputName)
sourceActivity - description of the source activity for the connectionoutputName - name of the output of the source activitytargetActivity - description of the target activity for the connectioninputName - name of the input of the target activityvoid addActivity(ActivityDescriptor descriptor)
descriptor - description of the activity to addActivityDescriptor getActivityInstance(ActivityInstanceName instanceName)
instanceName - activity instance name
null if no such activity is
contained in the graphboolean containsActivityInstance(ActivityInstanceName instanceName)
instanceName - activity instance name
true if so, false otherwiseboolean containsPipe(java.lang.String pipeName)
pipeName - name of the pipe
true if it exists within the graph,
false otherwiseboolean containsActivity(ActivityDescriptor activity)
activity - activity descriptor
true if so, false otherwisevoid setParent(Activity parentActivity)
parentActivity - parent activity.Activity getParent()
null if there is no parent
activity.boolean hasParent()
true if the pipeline has a parent activity,
false otherwise.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||