org.smartcomps.twister.engine.priv.core.dynamic.impl
Class SequenceECImpl
java.lang.Object
|
+--org.smartcomps.twister.engine.priv.core.dynamic.impl.ExecutionContextImpl
|
+--org.smartcomps.twister.engine.priv.core.dynamic.impl.StructuredECImpl
|
+--org.smartcomps.twister.engine.priv.core.dynamic.impl.SequenceECImpl
- All Implemented Interfaces:
- java.lang.Comparable, ExecutionContext, SequenceEC, StructuredEC
- public class SequenceECImpl
- extends StructuredECImpl
- implements SequenceEC
Persistent implementation of the SequenceEC interface.
Method Summary |
void |
execute()
|
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. |
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. |
void |
notifyExecution(org.smartcomps.twister.engine.priv.core.dynamic.ExecutionContext ec)
Notifies the container that an activity within it is starting execution. |
void |
notifyTermination(org.smartcomps.twister.engine.priv.core.dynamic.ExecutionContext ec)
Notifies the container that an activity within it has ended its termination. |
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 |
SequenceECImpl
public SequenceECImpl()
execute
public void execute()
- Specified by:
execute
in interface ExecutionContext
notifyExecution
public void notifyExecution(org.smartcomps.twister.engine.priv.core.dynamic.ExecutionContext ec)
- Description copied from class:
StructuredECImpl
- Notifies the container that an activity within it is starting execution.
- Specified by:
notifyExecution
in interface StructuredEC
- Specified by:
notifyExecution
in class StructuredECImpl
notifyTermination
public void notifyTermination(org.smartcomps.twister.engine.priv.core.dynamic.ExecutionContext ec)
- Description copied from class:
StructuredECImpl
- Notifies the container that an activity within it has ended its termination.
- Specified by:
notifyTermination
in interface StructuredEC
- Specified by:
notifyTermination
in class StructuredECImpl
getActivityForChildContext
public org.smartcomps.twister.engine.priv.core.definition.Activity getActivityForChildContext(org.smartcomps.twister.engine.priv.core.dynamic.ExecutionContext ec)
- Description copied from interface:
StructuredEC
- Returns the origin activity of the passed child execution context.
- Specified by:
getActivityForChildContext
in interface StructuredEC
- Specified by:
getActivityForChildContext
in class StructuredECImpl
- Parameters:
ec
- the execution context to get origin activity for
- Returns:
getExecution
public org.smartcomps.twister.engine.priv.core.dynamic.ExecutionContext getExecution(org.smartcomps.twister.engine.priv.core.definition.Activity childActivity)
- Description copied from interface:
StructuredEC
- 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
- Specified by:
getExecution
in class StructuredECImpl
- Parameters:
childActivity
-
- Returns:
- Collection of execution contexts corresponding to the provided activity
Copyright © 2003 SmartComps. All Rights Reserved.