org.smartcomps.twister.engine.priv.core.dynamic.impl
Class StructuredECImpl

java.lang.Object
  |
  +--org.smartcomps.twister.engine.priv.core.dynamic.impl.ExecutionContextImpl
        |
        +--org.smartcomps.twister.engine.priv.core.dynamic.impl.StructuredECImpl
All Implemented Interfaces:
java.lang.Comparable, ExecutionContext, StructuredEC
Direct Known Subclasses:
FlowECImpl, PickECImpl, SequenceECImpl, SwitchECImpl, WhileECImpl

public abstract class StructuredECImpl
extends ExecutionContextImpl
implements StructuredEC

Please put some JavaDoc here.


Field Summary
 
Fields inherited from class org.smartcomps.twister.engine.priv.core.dynamic.impl.ExecutionContextImpl
log
 
Fields inherited from interface org.smartcomps.twister.engine.priv.core.dynamic.ExecutionContext
ACTIVE, CANCELED, COMPLETED, ENDED_CANCELED, ENDED_COMPLETED, ENDED_FAULTED, FAULTED, OPEN
 
Constructor Summary
StructuredECImpl()
           
 
Method Summary
 void addExecutionContext(org.smartcomps.twister.engine.priv.core.dynamic.ExecutionContext ec)
           
 org.smartcomps.twister.engine.priv.core.definition.StructuredActivity getActivity()
           
abstract  org.smartcomps.twister.engine.priv.core.definition.Activity getActivityForChildContext(org.smartcomps.twister.engine.priv.core.dynamic.ExecutionContext ec)
          Returns the origin activity of the passed child execution context.
abstract  org.smartcomps.twister.engine.priv.core.dynamic.ExecutionContext getExecution(org.smartcomps.twister.engine.priv.core.definition.Activity childActivity)
          Returns the execution context created in this structured execution from the provided activity.
 java.util.List getExecutionContexts()
           
 java.util.Set getExecutionContextsSet()
           
abstract  void notifyExecution(org.smartcomps.twister.engine.priv.core.dynamic.ExecutionContext ec)
          Notifies the container that an activity within it is starting execution.
abstract  void notifyTermination(org.smartcomps.twister.engine.priv.core.dynamic.ExecutionContext ec)
          Notifies the container that an activity within it has ended its termination.
 void setActivity(org.smartcomps.twister.engine.priv.core.definition.StructuredActivity activity)
           
 void setExecutionContextsSet(java.util.Set exectutionContextsSet)
          Do not use this method, its doesn't maintain activity indexes properly, use the addActivity method instead.
 
Methods inherited from class org.smartcomps.twister.engine.priv.core.dynamic.impl.ExecutionContextImpl
addEvent, compareTo, completeChildren, fetchInstance, getContainer, getEvents, getExecutionContextFactory, getId, getIndex, getInitialActivity, getInstance, getProcessInstance, getStatus, getVariableXAO, notifyExecutionToContainer, notifyTerminationToContainer, setContainer, setEvents, setId, setIndex, setInstance, setProcessInstance, setStatus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.smartcomps.twister.engine.priv.core.dynamic.ExecutionContext
execute, fetchInstance, getContainer, getEvents, getId, getInstance, getStatus, setStatus
 

Constructor Detail

StructuredECImpl

public StructuredECImpl()
Method Detail

getActivity

public org.smartcomps.twister.engine.priv.core.definition.StructuredActivity getActivity()
Specified by:
getActivity in interface StructuredEC

setActivity

public void setActivity(org.smartcomps.twister.engine.priv.core.definition.StructuredActivity activity)
Specified by:
setActivity in interface StructuredEC

setExecutionContextsSet

public void setExecutionContextsSet(java.util.Set exectutionContextsSet)
Do not use this method, its doesn't maintain activity indexes properly, use the addActivity method instead.

Parameters:
exectutionContextsSet -

getExecutionContextsSet

public java.util.Set getExecutionContextsSet()

getExecutionContexts

public java.util.List getExecutionContexts()
Specified by:
getExecutionContexts in interface StructuredEC

addExecutionContext

public void addExecutionContext(org.smartcomps.twister.engine.priv.core.dynamic.ExecutionContext ec)
Specified by:
addExecutionContext in interface StructuredEC

getActivityForChildContext

public abstract org.smartcomps.twister.engine.priv.core.definition.Activity getActivityForChildContext(org.smartcomps.twister.engine.priv.core.dynamic.ExecutionContext ec)
Returns the origin activity of the passed child execution context.

Specified by:
getActivityForChildContext in interface StructuredEC
Parameters:
ec - the execution context to get origin activity for
Returns:

getExecution

public abstract org.smartcomps.twister.engine.priv.core.dynamic.ExecutionContext getExecution(org.smartcomps.twister.engine.priv.core.definition.Activity childActivity)
Returns the execution context created in this structured execution from the provided activity. If several execution contexts exist (like for a WhileEC for example), only the last created is returned.

Specified by:
getExecution in interface StructuredEC
Parameters:
childActivity -
Returns:
Collection of execution contexts corresponding to the provided activity

notifyExecution

public abstract void notifyExecution(org.smartcomps.twister.engine.priv.core.dynamic.ExecutionContext ec)
Notifies the container that an activity within it is starting execution.

Specified by:
notifyExecution in interface StructuredEC

notifyTermination

public abstract void notifyTermination(org.smartcomps.twister.engine.priv.core.dynamic.ExecutionContext ec)
Notifies the container that an activity within it has ended its termination.

Specified by:
notifyTermination in interface StructuredEC


Copyright © 2003 SmartComps. All Rights Reserved.