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()
PropertyHolder
getId
in interface PropertyHolder
public Object getProperty(String name)
PropertyHolder
getProperty
in interface PropertyHolder
public void setProperty(String name, Object value)
PropertyHolder
setProperty
in interface PropertyHolder
public void removeProperty(String name)
PropertyHolder
removeProperty
in interface PropertyHolder
public Set<String> getKeys()
getKeys
in interface PropertyHolder
public void clearProperties()
clearProperties
in interface PropertyHolder
public ExecutionPhase getPhase()
ExecutionContext
getPhase
in interface ExecutionContext
public void setPhase(ExecutionPhase executionPhase)
public Executor getExecutor()
ExecutionContext
getExecutor
in interface ExecutionContext
public DataService getDataService()
ExecutionContext
getDataService
in interface ExecutionContext
public ExecutionDisplay getExecutionDisplay()
ExecutionContext
getExecutionDisplay
in interface ExecutionContext
public ExecutionData getExecutionData()
ExecutionContext
getExecutionData
in interface ExecutionContext
public Executable getActiveExecutable()
getActiveExecutable
in interface ExecutionContext
public Element getActiveElement()
getActiveElement
in interface ExecutionContext
public List<Element> getElementStack()
getElementStack
in interface ExecutionContext
Copyright © 2013. All Rights Reserved.