|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SCXMLSemantics
The purpose of this interface is to separate the interpretation algorithm
from the SCXMLExecutor
and therefore make it pluggable.
Semantics agnostic utility functions and common operators as defined in
UML can be found in the SCXMLHelper
or attached directly to
the SCXML model elements. Some of the possible semantic interpretations
are, for example:
Specific semantics can be created by subclassing
org.apache.commons.scxml.semantics.SCXMLSemanticsImpl
.
Method Summary | |
---|---|
void |
determineInitialStates(SCXML input,
Set states,
List entryList,
ErrorReporter errRep,
SCInstance scInstance)
Determining the initial state(s) for this state machine. |
void |
enumerateReachableTransitions(SCXML stateMachine,
Step step,
ErrorReporter errRep)
Enumerate all the reachable transitions. |
void |
executeActions(Step step,
SCXML stateMachine,
EventDispatcher evtDispatcher,
ErrorReporter errRep,
SCInstance scInstance)
Executes all OnExit/Transition/OnEntry transitional actions. |
void |
filterTransitionsSet(Step step,
EventDispatcher evtDispatcher,
ErrorReporter errRep,
SCInstance scInstance)
Filter the transitions set, eliminate those whose guard conditions are not satisfied. |
void |
followTransitions(Step step,
ErrorReporter errorReporter,
SCInstance scInstance)
Follow the candidate transitions for this execution Step, and update the lists of entered and exited states accordingly. |
void |
initiateInvokes(Step step,
ErrorReporter errRep,
SCInstance scInstance)
Initiate any new invoked activities. |
SCXML |
normalizeStateMachine(SCXML input,
ErrorReporter errRep)
Optional post processing immediately following Digester. |
void |
processInvokes(TriggerEvent[] events,
ErrorReporter errRep,
SCInstance scInstance)
Forward events to invoked activities, execute finalize handlers. |
void |
updateHistoryStates(Step step,
ErrorReporter errRep,
SCInstance scInstance)
Go over the exit list and update history information for relevant states. |
Method Detail |
---|
SCXML normalizeStateMachine(SCXML input, ErrorReporter errRep)
input
- SCXML state machineerrRep
- ErrorReporter callback
void determineInitialStates(SCXML input, Set states, List entryList, ErrorReporter errRep, SCInstance scInstance) throws ModelException
input
- SCXML state machinestates
- a set of States to populateentryList
- a list of States and Parallels to entererrRep
- ErrorReporter callbackscInstance
- The state chart instance
ModelException
- in case there is a fatal SCXML object model problem.void executeActions(Step step, SCXML stateMachine, EventDispatcher evtDispatcher, ErrorReporter errRep, SCInstance scInstance) throws ModelException
step
- provides EntryList, TransitList, ExitList gets
updated its AfterStatus/EventsstateMachine
- state machine - SCXML instanceevtDispatcher
- the event dispatcher - EventDispatcher instanceerrRep
- error reporterscInstance
- The state chart instance
ModelException
- in case there is a fatal SCXML object model problem.void enumerateReachableTransitions(SCXML stateMachine, Step step, ErrorReporter errRep)
stateMachine
- a state machine to traversestep
- with current status and list of transitions to populateerrRep
- ErrorReporter callbackvoid filterTransitionsSet(Step step, EventDispatcher evtDispatcher, ErrorReporter errRep, SCInstance scInstance) throws ModelException
step
- with current statusevtDispatcher
- the event dispatcher - EventDispatcher instanceerrRep
- ErrorReporter callbackscInstance
- The state chart instance
ModelException
- in case there is a fatal SCXML object model problem.void followTransitions(Step step, ErrorReporter errorReporter, SCInstance scInstance) throws ModelException
step
- The current SteperrorReporter
- The ErrorReporter for the current environmentscInstance
- The state chart instance
ModelException
- in case there is a fatal SCXML object model problem.void updateHistoryStates(Step step, ErrorReporter errRep, SCInstance scInstance)
step
- The current SteperrRep
- ErrorReporter callbackscInstance
- The state chart instancevoid processInvokes(TriggerEvent[] events, ErrorReporter errRep, SCInstance scInstance) throws ModelException
events
- The events to be forwardederrRep
- ErrorReporter callbackscInstance
- The state chart instance
ModelException
- in case there is a fatal SCXML object model problem.void initiateInvokes(Step step, ErrorReporter errRep, SCInstance scInstance)
step
- The current SteperrRep
- ErrorReporter callbackscInstance
- The state chart instance
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |