|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.taglibs.rdc.scxml.SCXMLExecutor
public class SCXMLExecutor
The SCXML "engine" that executes SCXML documents. The particular semantics used by this engine for executing the SCXML are encapsulated in SCXMLSemantics.
SCXMLSemantics| Constructor Summary | |
|---|---|
SCXMLExecutor()
|
|
SCXMLExecutor(Evaluator evaluator,
EventDispatcher evtDisp,
ErrorReporter errRep)
Constructor |
|
| Method Summary | |
|---|---|
Status |
getCurrentStatus()
Get the current status |
ErrorReporter |
getErrorReporter()
Get the environment specific error reporter |
Evaluator |
getEvaluator()
Get the expression evaluator |
EventDispatcher |
getEventdispatcher()
Get the event dispatcher |
SCXML |
getStateMachine()
Get the state machine that is being executed |
boolean |
isSuperStep()
Use "super-step", default is true
(that is, run-to-completion is default) |
void |
reset()
Clear all state and begin from "initialstate" indicated on root SCXML element. |
void |
setErrorReporter(ErrorReporter errorReporter)
Set the environment specific error reporter |
void |
setEvaluator(Evaluator evaluator)
|
void |
setEventdispatcher(EventDispatcher eventdispatcher)
Set the event dispatcher |
void |
setStateMachine(SCXML statemachine)
Set the state machine to be executed |
void |
setSuperStep(boolean superStep)
Set the super step |
void |
triggerEvents(TriggerEvent[] evts)
The worker method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SCXMLExecutor()
throws ModelException
ModelException
public SCXMLExecutor(Evaluator evaluator,
EventDispatcher evtDisp,
ErrorReporter errRep)
throws ModelException
stateMachine - The stateMachine to executeevaluator - The expression evaluatorevtDisp - The event dispatchererrRep - The error reporter
ModelException - in case there is a fatal SCXML object
model problem.| Method Detail |
|---|
public void triggerEvents(TriggerEvent[] evts)
throws ModelException
evts - an array of external events which triggered during the last
time quantum
ModelException - in case there is a fatal SCXML object
model problem.
public void reset()
throws ModelException
ModelException - in case there is a fatal SCXML object
model problem.public Status getCurrentStatus()
public Evaluator getEvaluator()
public void setEvaluator(Evaluator evaluator)
evaluator - The evaluator to set.public SCXML getStateMachine()
public void setStateMachine(SCXML statemachine)
throws ModelException
stateMachine - The stateMachine to set.
ModelException - in case there is a fatal SCXML object
model problem.public ErrorReporter getErrorReporter()
public void setErrorReporter(ErrorReporter errorReporter)
errorReporter - The errorReporter to set.public EventDispatcher getEventdispatcher()
public void setEventdispatcher(EventDispatcher eventdispatcher)
eventdispatcher - The eventdispatcher to set.public boolean isSuperStep()
true
(that is, run-to-completion is default)
setSuperStep(boolean)public void setSuperStep(boolean superStep)
superStep - if true, the internal derived events are also processed (run-to-completion);
if false, the internal derived events are stored in the
CurrentStatus property and processed within the next
triggerEvents() invocation, also the immediate (empty event) transitions
are deferred until the next step
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||