org.smartcomps.twister.engine.priv.core.definition.impl
Class ActivityImpl

java.lang.Object
  |
  +--org.smartcomps.twister.engine.priv.core.definition.impl.ActivityImpl
All Implemented Interfaces:
Activity, java.lang.Comparable
Direct Known Subclasses:
BasicActivityImpl, StructuredActivityImpl

public abstract class ActivityImpl
extends java.lang.Object
implements Activity, java.lang.Comparable

Persistent implementation of the Activity interface.

See Also:
Activity

Constructor Summary
ActivityImpl()
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
protected  org.smartcomps.twister.engine.priv.core.dynamic.ExecutionContext createContextTree(java.lang.String correlationSetName, java.util.Map correlation)
           
 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.impl.StructuredActivityImpl getActivityContainer()
          TECHNICAL, DO NOT USE
 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.Long getId()
           
 int getIndex()
          TECHNICAL, DO NOT USE
 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 getProcessSet()
          TECHNICAL, DO NOT USE Only one activity in a processSet really has a processSet, therefore this method will often return null ; use the getContainer method instead, that always returns the right container (the real activity container or the processSet if it's a root activity).
 java.util.Set getSourceLinks()
           
 java.util.Set getTargetLinks()
           
 void setActivityContainer(org.smartcomps.twister.engine.priv.core.definition.impl.StructuredActivityImpl activityContainer)
          TECHNICAL, DO NOT USE
 void setContainer(org.smartcomps.twister.engine.priv.core.definition.StructuredActivity stucturedActivity)
           
 void setId(java.lang.Long id)
           
 void setIndex(int index)
          TECHNICAL, DO NOT USE
 void setJoinCondition(java.lang.String joinCondition)
           
 void setName(java.lang.String name)
           
 void setProcess(org.smartcomps.twister.engine.priv.core.definition.TwisterProcess process)
           
 void setProcessSet(java.util.Set processSet)
          TECHNICAL, DO NOT USE
 void setSourceLinks(java.util.Set sourceLinks)
           
 void setTargetLinks(java.util.Set targetLinks)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActivityImpl

public ActivityImpl()
Method Detail

getId

public java.lang.Long getId()

setId

public void setId(java.lang.Long id)

getName

public java.lang.String getName()
Specified by:
getName in interface Activity

setName

public void setName(java.lang.String name)
Specified by:
setName in interface Activity

getJoinCondition

public java.lang.String getJoinCondition()
Specified by:
getJoinCondition in interface Activity

setJoinCondition

public void setJoinCondition(java.lang.String joinCondition)
Specified by:
setJoinCondition in interface Activity

getSourceLinks

public java.util.Set getSourceLinks()
Specified by:
getSourceLinks in interface Activity

setSourceLinks

public void setSourceLinks(java.util.Set sourceLinks)
Specified by:
setSourceLinks in interface Activity

getTargetLinks

public java.util.Set getTargetLinks()
Specified by:
getTargetLinks in interface Activity

setTargetLinks

public void setTargetLinks(java.util.Set targetLinks)
Specified by:
setTargetLinks in interface Activity

getContainer

public org.smartcomps.twister.engine.priv.core.definition.StructuredActivity getContainer()
Description copied from interface: Activity
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).

Specified by:
getContainer in interface Activity
Returns:
StructuredActivity the container of this activity, null if this activity is root

setContainer

public void setContainer(org.smartcomps.twister.engine.priv.core.definition.StructuredActivity stucturedActivity)

getProcess

public org.smartcomps.twister.engine.priv.core.definition.TwisterProcess getProcess()
Description copied from interface: Activity
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).

Specified by:
getProcess in interface Activity
Returns:
TwisterProcess the process of this activity, null for all activity that are not root

setProcess

public void setProcess(org.smartcomps.twister.engine.priv.core.definition.TwisterProcess process)

fetchProcess

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

Specified by:
fetchProcess in interface Activity
Returns:
TwisterProcess

getActivityContainer

public org.smartcomps.twister.engine.priv.core.definition.impl.StructuredActivityImpl getActivityContainer()
TECHNICAL, DO NOT USE


setActivityContainer

public void setActivityContainer(org.smartcomps.twister.engine.priv.core.definition.impl.StructuredActivityImpl activityContainer)
TECHNICAL, DO NOT USE


getProcessSet

public java.util.Set getProcessSet()
TECHNICAL, DO NOT USE Only one activity in a processSet really has a processSet, therefore this method will often return null ; use the getContainer method instead, that always returns the right container (the real activity container or the processSet if it's a root activity).


setProcessSet

public void setProcessSet(java.util.Set processSet)
TECHNICAL, DO NOT USE


getIndex

public int getIndex()
TECHNICAL, DO NOT USE


setIndex

public void setIndex(int index)
TECHNICAL, DO NOT USE


createContextTree

protected org.smartcomps.twister.engine.priv.core.dynamic.ExecutionContext createContextTree(java.lang.String correlationSetName,
                                                                                             java.util.Map correlation)
                                                                                      throws EngineException
EngineException

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable


Copyright © 2003 SmartComps. All Rights Reserved.