|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Defines the tuple centre reactive behaviour, which is the core of its coordination ability. It manages reactions which are triggered by internal and external communication events and executed. See literature about tuple centre model for details.
Reaction,
TupleCentreVM| Method Summary | |
boolean |
evalReaction(TriggeredReaction z)
Evaluates (executes) a reaction. |
Tuple |
getReactionSpec()
Gets the current reactive behaviour of the tuple centre |
java.util.ArrayList |
getTriggeredReactions(Event ev)
Gets the reactions triggered by a communication event It represents the reaction specification function sigma.Z(event) of tuple centre formal model |
void |
onNewVMStableState()
invoked by the tuple centre virtual machine when stable state is reached |
void |
reset()
Resets the reactive component of the machine |
boolean |
setReactionSpec(Tuple spec)
Sets the specification describing the reactive behaviour It's like the program specyfing the behaviour of the tuple centre reacting to communication events. |
boolean |
triggerReaction(Event ev)
Checks if any reaction is triggered by a communication event |
| Method Detail |
public java.util.ArrayList getTriggeredReactions(Event ev)
ev - the event triggering reactionspublic boolean triggerReaction(Event ev)
ev - the event triggering reactionspublic boolean evalReaction(TriggeredReaction z)
z - the triggered reaction to be evaluatedtrue if the evaluation has been successful,
false if notpublic boolean setReactionSpec(Tuple spec)
spec - the behaviour specification described as a tupletrue if the operation has been successful,
false if notpublic Tuple getReactionSpec()
public void reset()
public void onNewVMStableState()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||