|
The Meta-Environment API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface StateElement
The interface StateElement captures all operations that can be performed on an element of a State. Recall that all proces expressions are compiled to a finite automaton consisting of States and transitions. The most typical example of a StateElement is an Atom.
| Method Summary | |
|---|---|
void |
activate()
Activate the StateElement, i.e. |
boolean |
contains(StateElement elem)
Check whether a StateElement contains another StateElement. |
ProcessInstance[] |
debugExecute()
Executes the state element in debug mode. |
boolean |
execute()
Execute this StateElement |
State |
getFollow()
|
PositionInformation |
getPosInfo()
Returns the position information associated to the implementing state element. |
ProcessInstance |
getProcess()
|
java.util.List<aterm.ATerm> |
getTests()
Returns a collection containing all tests that are associated with this state element. |
State |
gotoNextStateAndActivate()
|
State |
gotoNextStateAndActivate(StateElement elem)
Get the successor of the StateElement for a given other StateElement elem. |
boolean |
isEnabled()
Is this StateElelement enabled for execution, i.e., are its associated tests all true? If enabled, the StateElement is ready for execution. |
void |
setTest(aterm.ATerm test,
Environment env)
Add a test to this state element. |
| Method Detail |
|---|
boolean contains(StateElement elem)
elem - the StateElement
void setTest(aterm.ATerm test,
Environment env)
throws ToolBusException
test - env - to be used for executing the test
ToolBusExceptionjava.util.List<aterm.ATerm> getTests()
boolean isEnabled()
throws ToolBusException
ToolBusExceptionProcessInstance getProcess()
void activate()
boolean execute()
throws ToolBusException
ToolBusException
ProcessInstance[] debugExecute()
throws ToolBusException
ToolBusExceptionState gotoNextStateAndActivate()
State gotoNextStateAndActivate(StateElement elem)
elem -
PositionInformation getPosInfo()
State getFollow()
ProcessExpression.getFollow()
|
The Meta-Environment API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||