|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectgestIT.TmpExp
gestIT.SimpleTmpExp
public class SimpleTmpExp
Subclass of TmpExp that represent a simple building block. A simple building block can check a constraint, if it is constructed with an ExpContent
Field Summary | |
---|---|
ExpContent |
Content
The Content that will check the constraint |
Token |
token
The token of the execution |
Fields inherited from class gestIT.TmpExp |
---|
Completed, Error, Iterative, Optional, Parent, Performing, state, type |
Constructor Summary | |
---|---|
SimpleTmpExp()
Constructor that return a new SimpleTmpExp without ExpContent connected |
|
SimpleTmpExp(ExpContent cnt)
Constructor that return a new SimpleTmpExp with an ExpContent connected |
Method Summary | |
---|---|
boolean |
Accepts(ExpEventArgs arg)
Method that check if event parameters will satisfy the current simple building block |
boolean |
Consume(ExpEventArgs arg)
Method that consume an event |
void |
Invalidate(ExpEventArgs arg)
Invalidate the following simple building block and set the state to error If the current building block is flagged as iterative, it will be setted back to enable state |
void |
SetExecState(ExecState state,
Token token)
Method for changing the execution state of a building block |
Methods inherited from class gestIT.TmpExp |
---|
addCompletedListener, addErrorListener, addOnStateChangedListener, addPerformingListener, getState, removeCompletedListener, removeErrorListener, removeOnStateChangedListener, removePerformingListener |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public ExpContent Content
public Token token
Constructor Detail |
---|
public SimpleTmpExp()
public SimpleTmpExp(ExpContent cnt)
cnt
- The ExpContent that will check the constraintMethod Detail |
---|
public boolean Accepts(ExpEventArgs arg)
arg
- The event parameter to be checked
public boolean Consume(ExpEventArgs arg)
arg
- The event parameter to be consumed
public void Invalidate(ExpEventArgs arg)
arg
- public void SetExecState(ExecState state, Token token)
TmpExp
SetExecState
in class TmpExp
state
- The new state for the building blocktoken
- The token that must be passed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |