public class ExecutionContextImpl extends Object implements ExecutionContext
| Constructor and Description |
|---|
ExecutionContextImpl(ExecutorImpl executor,
ExecutionData executionData,
DataService dataService,
ExecutionDisplay executionDisplay) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearProperties()
Clear all properties
|
Element |
getActiveElement()
Get the active Element.
|
Executable |
getActiveExecutable()
Get the currently scheduled or executed ExecutableElement.
|
DataService |
getDataService()
Get the data service that allows access to the data layer of Tatool.
|
List<Element> |
getElementStack()
Get the element stack, the stack of elements being executed.
|
ExecutionData |
getExecutionData()
Get access to the execution data.
|
ExecutionDisplay |
getExecutionDisplay()
Get the display object that allows the elements to interact with the
display.
|
Executor |
getExecutor()
Get the executor of this module.
|
String |
getId()
Get the id of this property holder, usable to store the property in a DataContainer.
|
Set<String> |
getKeys()
Get all properties contained in this holder
|
ExecutionPhase |
getPhase()
Get the current phase of the execution.
|
Object |
getProperty(String name)
Get a specific element property.
|
void |
removeProperty(String name)
Remove the property for the given key.
|
void |
setPhase(ExecutionPhase executionPhase) |
void |
setProperty(String name,
Object value)
Set a specific element property.
|
public ExecutionContextImpl(ExecutorImpl executor, ExecutionData executionData, DataService dataService, ExecutionDisplay executionDisplay)
public String getId()
PropertyHoldergetId in interface PropertyHolderpublic Object getProperty(String name)
PropertyHoldergetProperty in interface PropertyHolderpublic void setProperty(String name, Object value)
PropertyHoldersetProperty in interface PropertyHolderpublic void removeProperty(String name)
PropertyHolderremoveProperty in interface PropertyHolderpublic Set<String> getKeys()
getKeys in interface PropertyHolderpublic void clearProperties()
clearProperties in interface PropertyHolderpublic ExecutionPhase getPhase()
ExecutionContextgetPhase in interface ExecutionContextpublic void setPhase(ExecutionPhase executionPhase)
public Executor getExecutor()
ExecutionContextgetExecutor in interface ExecutionContextpublic DataService getDataService()
ExecutionContextgetDataService in interface ExecutionContextpublic ExecutionDisplay getExecutionDisplay()
ExecutionContextgetExecutionDisplay in interface ExecutionContextpublic ExecutionData getExecutionData()
ExecutionContextgetExecutionData in interface ExecutionContextpublic Executable getActiveExecutable()
getActiveExecutable in interface ExecutionContextpublic Element getActiveElement()
getActiveElement in interface ExecutionContextpublic List<Element> getElementStack()
getElementStack in interface ExecutionContextCopyright © 2013. All Rights Reserved.