org.smartcomps.twister.engine.priv.core.definition
Interface Activity

All Known Subinterfaces:
Assign, BasicActivity, Empty, Flow, Invoke, Pick, Receive, Reply, Scope, Sequence, StructuredActivity, Switch, Terminate, Wait, While
All Known Implementing Classes:
ActivityImpl, AssignImpl, BasicActivityImpl, EmptyImpl, FlowImpl, InvokeImpl, PickAsReceive, PickImpl, ReceiveImpl, ReplyImpl, ScopeImpl, SequenceImpl, StructuredActivityImpl, SwitchImpl, TerminateImpl, WaitImpl, WhileImpl

public interface Activity

Root class for all activities, an activity is the most basic part of a process defining what should be done.


Method Summary
 org.smartcomps.twister.engine.priv.core.definition.TwisterProcess fetchProcess()
          This method browse the activity containment hierarchy to fetch the process this activity is included in.
 org.smartcomps.twister.engine.priv.core.definition.StructuredActivity getContainer()
          An Activity is contained either in a TwisterProcess of in a StructuredActivity, therefore this method will return the StructuredActivity containing this activity only if it's not the root activity.
 java.lang.String getJoinCondition()
           
 java.lang.String getName()
           
 org.smartcomps.twister.engine.priv.core.definition.TwisterProcess getProcess()
          An Activity is contained either in a TwisterProcess of in a StructuredActivity, therefore this method will return the TwisterProcess containing this activity only if it is the root activity.
 java.util.Set getSourceLinks()
           
 java.util.Set getTargetLinks()
           
 void setJoinCondition(java.lang.String expr)
           
 void setName(java.lang.String name)
           
 void setSourceLinks(java.util.Set sources)
           
 void setTargetLinks(java.util.Set targets)
           
 

Method Detail

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getJoinCondition

public java.lang.String getJoinCondition()

setJoinCondition

public void setJoinCondition(java.lang.String expr)

getSourceLinks

public java.util.Set getSourceLinks()

setSourceLinks

public void setSourceLinks(java.util.Set sources)

getTargetLinks

public java.util.Set getTargetLinks()

setTargetLinks

public void setTargetLinks(java.util.Set targets)

getContainer

public org.smartcomps.twister.engine.priv.core.definition.StructuredActivity getContainer()
An Activity is contained either in a TwisterProcess of in a StructuredActivity, therefore this method will return the StructuredActivity containing this activity only if it's not the root activity. For the root activity it will return null (the root activity being the activity directly in the process).

Returns:
StructuredActivity the container of this activity, null if this activity is root

getProcess

public org.smartcomps.twister.engine.priv.core.definition.TwisterProcess getProcess()
An Activity is contained either in a TwisterProcess of in a StructuredActivity, therefore this method will return the TwisterProcess containing this activity only if it is the root activity. For other activities it will return null (the root activity being the activity directly in the process).

Returns:
TwisterProcess the process of this activity, null for all activity that are not root

fetchProcess

public org.smartcomps.twister.engine.priv.core.definition.TwisterProcess fetchProcess()
This method browse the activity containment hierarchy to fetch the process this activity is included in.

Returns:
TwisterProcess


Copyright © 2003 SmartComps. All Rights Reserved.