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

java.lang.Object
  |
  +--org.smartcomps.twister.engine.priv.core.dynamic.impl.ExecutionContextImpl
All Implemented Interfaces:
java.lang.Comparable, ExecutionContext
Direct Known Subclasses:
BasicECImpl, StructuredECImpl

public abstract class ExecutionContextImpl
extends java.lang.Object
implements ExecutionContext, java.lang.Comparable

Please put some JavaDoc here.


Field Summary
protected static org.apache.commons.logging.Log 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
ExecutionContextImpl()
           
 
Method Summary
 void addEvent(org.smartcomps.twister.engine.priv.core.dynamic.ExecutionEvent event)
           
 int compareTo(java.lang.Object o)
           
protected  void completeChildren(org.smartcomps.twister.engine.priv.core.dynamic.StructuredEC ec)
           
 org.smartcomps.twister.engine.priv.core.dynamic.ProcessInstance fetchInstance()
          Browse the hierarchy tree through all containers to fetch the process instance this execution context is included in.
 org.smartcomps.twister.engine.priv.core.dynamic.StructuredEC getContainer()
          Returns the structured execution context containing this execution context (we could call it a parent execution context).
 java.util.Collection getEvents()
           
protected  org.smartcomps.twister.engine.priv.core.dynamic.ExecutionContextFactory getExecutionContextFactory()
           
 java.lang.Long getId()
           
 int getIndex()
          TECHNICAL, DO NOT USE
protected  org.smartcomps.twister.engine.priv.core.definition.Activity getInitialActivity()
          Gets this execution context initial activity (the one whose execution resulted in the creation of this execution context) passing through its parent container or process instance.
 org.smartcomps.twister.engine.priv.core.dynamic.ProcessInstance getInstance()
          Returns the ProcessInstance if this execution context is root or null otherwise.
protected  java.util.Set getProcessInstance()
          TECHNICAL, DO NOT USE
 int getStatus()
           
protected  org.smartcomps.twister.engine.priv.core.dynamic.impl.xao.VariableXAO getVariableXAO()
           
protected  void notifyExecutionToContainer()
           
protected  void notifyTerminationToContainer()
           
 void setContainer(org.smartcomps.twister.engine.priv.core.dynamic.StructuredEC container)
           
 void setEvents(java.util.Collection events)
           
 void setId(java.lang.Long id)
           
 void setIndex(int index)
          TECHNICAL, DO NOT USE
 void setInstance(org.smartcomps.twister.engine.priv.core.dynamic.ProcessInstance instance)
           
protected  void setProcessInstance(java.util.Set processInstance)
          TECHNICAL, DO NOT USE
 void setStatus(int status)
           
 
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
 

Field Detail

log

protected static org.apache.commons.logging.Log log
Constructor Detail

ExecutionContextImpl

public ExecutionContextImpl()
Method Detail

getId

public java.lang.Long getId()
Specified by:
getId in interface ExecutionContext

setId

public void setId(java.lang.Long id)

getStatus

public int getStatus()
Specified by:
getStatus in interface ExecutionContext

setStatus

public void setStatus(int status)
Specified by:
setStatus in interface ExecutionContext

getContainer

public org.smartcomps.twister.engine.priv.core.dynamic.StructuredEC getContainer()
Description copied from interface: ExecutionContext
Returns the structured execution context containing this execution context (we could call it a parent execution context). Returns null if this execution context is the root one, only contained by the process instance.

Specified by:
getContainer in interface ExecutionContext
Returns:
StructuredEC or null if the container is the process instance.

setContainer

public void setContainer(org.smartcomps.twister.engine.priv.core.dynamic.StructuredEC container)

getEvents

public java.util.Collection getEvents()
Specified by:
getEvents in interface ExecutionContext

setEvents

public void setEvents(java.util.Collection events)

addEvent

public void addEvent(org.smartcomps.twister.engine.priv.core.dynamic.ExecutionEvent event)

getInstance

public org.smartcomps.twister.engine.priv.core.dynamic.ProcessInstance getInstance()
Description copied from interface: ExecutionContext
Returns the ProcessInstance if this execution context is root or null otherwise.

Specified by:
getInstance in interface ExecutionContext
Returns:
ProcessInstance or null

setInstance

public void setInstance(org.smartcomps.twister.engine.priv.core.dynamic.ProcessInstance instance)

getProcessInstance

protected java.util.Set getProcessInstance()
TECHNICAL, DO NOT USE


setProcessInstance

protected void setProcessInstance(java.util.Set processInstance)
TECHNICAL, DO NOT USE


getIndex

public int getIndex()
TECHNICAL, DO NOT USE


setIndex

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


getInitialActivity

protected org.smartcomps.twister.engine.priv.core.definition.Activity getInitialActivity()
Gets this execution context initial activity (the one whose execution resulted in the creation of this execution context) passing through its parent container or process instance.

Returns:
Activity

fetchInstance

public org.smartcomps.twister.engine.priv.core.dynamic.ProcessInstance fetchInstance()
Description copied from interface: ExecutionContext
Browse the hierarchy tree through all containers to fetch the process instance this execution context is included in.

Specified by:
fetchInstance in interface ExecutionContext
Returns:
ProcessInstance

notifyExecutionToContainer

protected void notifyExecutionToContainer()

notifyTerminationToContainer

protected void notifyTerminationToContainer()

completeChildren

protected void completeChildren(org.smartcomps.twister.engine.priv.core.dynamic.StructuredEC ec)

getExecutionContextFactory

protected org.smartcomps.twister.engine.priv.core.dynamic.ExecutionContextFactory getExecutionContextFactory()

getVariableXAO

protected org.smartcomps.twister.engine.priv.core.dynamic.impl.xao.VariableXAO getVariableXAO()

compareTo

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


Copyright © 2003 SmartComps. All Rights Reserved.