|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--alice.respect.Reactor
this class defines the ReSpecT tuple centre reactor component.
the specified reactions are parsed and executed using tuProlog engines.
| Constructor Summary | |
Reactor(TupleCentreVM m)
|
|
| Method Summary | |
static LogicTuple |
checkReactionSpec(LogicTuple spec)
|
boolean |
evalReaction(TriggeredReaction z)
reaction exectution is realized solving the goal represented by reaction body |
java.lang.String |
getOutTCactivityClassFile()
|
Tuple |
getReactionSpec()
Gets the current reactive behaviour of the tuple centre |
alice.tuprolog.Term |
getTerm(Event ev)
|
java.util.ArrayList |
getTriggeredReactions(Event ev)
the triggered reactions are collected the tuProlog engine, finding all the solutions of the requested goal |
void |
onNewVMStableState()
invoked by the tuple centre virtual machine when stable state is reached |
void |
reset()
Resets the reactive component of the machine |
void |
setOutTCactivityClassFile(java.lang.String classFile)
|
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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Reactor(TupleCentreVM m)
| Method Detail |
public void reset()
Reactorreset in interface Reactorpublic java.util.ArrayList getTriggeredReactions(Event ev)
getTriggeredReactions in interface Reactoralice.tuplemedium.Reactorev - the event triggering reactionspublic boolean triggerReaction(Event ev)
ReactortriggerReaction in interface Reactoralice.tuplemedium.Reactorev - the event triggering reactionspublic boolean evalReaction(TriggeredReaction z)
evalReaction in interface Reactoralice.tuplemedium.Reactorz - the triggered reaction to be evaluatedtrue if the evaluation has been successful,
false if notpublic alice.tuprolog.Term getTerm(Event ev)
public boolean setReactionSpec(Tuple spec)
ReactorsetReactionSpec in interface Reactoralice.tuplemedium.Reactorspec - the behaviour specification described as a tupletrue if the operation has been successful,
false if notpublic Tuple getReactionSpec()
ReactorgetReactionSpec in interface Reactoralice.tuplemedium.Reactorpublic static LogicTuple checkReactionSpec(LogicTuple spec)
public void setOutTCactivityClassFile(java.lang.String classFile)
public java.lang.String getOutTCactivityClassFile()
public void onNewVMStableState()
ReactoronNewVMStableState in interface Reactor
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||