Package | Description |
---|---|
org.apache.commons.scxml |
The Commons SCXML executor and core concepts.
|
org.apache.commons.scxml.env |
A collection of classes that may be commonly used to bridge the
SCXML executor to the runtime environment.
|
org.apache.commons.scxml.io |
A collection of classes for reading in and writing out SCXML
documents, to and from the Commons SCXML Java object model.
|
org.apache.commons.scxml.model |
A collection of classes needed to model SCXML documents.
|
Modifier and Type | Method and Description |
---|---|
static TransitionTarget |
SCXMLHelper.getLCA(TransitionTarget tt1,
TransitionTarget tt2)
Finds the least common ancestor of transition targets tt1 and tt2 if
one exists.
|
Modifier and Type | Method and Description |
---|---|
void |
SCXMLExecutor.addListener(TransitionTarget transitionTarget,
SCXMLListener listener)
Add a listener to this transition target.
|
void |
NotificationRegistry.fireOnEntry(SCXML observable,
TransitionTarget state)
Inform all relevant listeners that a TransitionTarget has been
entered.
|
void |
NotificationRegistry.fireOnEntry(TransitionTarget observable,
TransitionTarget state)
Inform all relevant listeners that a TransitionTarget has been
entered.
|
void |
NotificationRegistry.fireOnExit(SCXML observable,
TransitionTarget state)
Inform all relevant listeners that a TransitionTarget has been
exited.
|
void |
NotificationRegistry.fireOnExit(TransitionTarget observable,
TransitionTarget state)
Inform all relevant listeners that a TransitionTarget has been
exited.
|
void |
NotificationRegistry.fireOnTransition(SCXML observable,
TransitionTarget from,
TransitionTarget to,
Transition transition)
Inform all relevant listeners of a transition that has occured.
|
void |
NotificationRegistry.fireOnTransition(Transition observable,
TransitionTarget from,
TransitionTarget to,
Transition transition)
Inform all relevant listeners of a transition that has occured.
|
Context |
SCInstance.getContext(TransitionTarget transitionTarget)
Get the
Context for this TransitionTarget . |
Invoker |
SCInstance.getInvoker(TransitionTarget transitionTarget)
Get the
Invoker for this TransitionTarget . |
static TransitionTarget |
SCXMLHelper.getLCA(TransitionTarget tt1,
TransitionTarget tt2)
Finds the least common ancestor of transition targets tt1 and tt2 if
one exists.
|
static boolean |
SCXMLHelper.isDescendant(TransitionTarget tt,
TransitionTarget ctx)
Checks whether a transition target tt (State or Parallel) is a
descendant of the transition target context.
|
boolean |
SCInstance.isDone(TransitionTarget transitionTarget)
Get the completion status for this composite
TransitionTarget . |
void |
SCXMLListener.onEntry(TransitionTarget state)
Handle the entry into a TransitionTarget.
|
void |
SCXMLListener.onExit(TransitionTarget state)
Handle the exit out of a TransitionTarget.
|
void |
SCXMLListener.onTransition(TransitionTarget from,
TransitionTarget to,
Transition transition)
Handle the transition.
|
void |
SCXMLExecutor.removeListener(TransitionTarget transitionTarget,
SCXMLListener listener)
Remove this listener for this transition target.
|
void |
SCInstance.setDone(TransitionTarget transitionTarget,
boolean done)
Set the completion status for this composite
TransitionTarget . |
void |
SCInstance.setInvoker(TransitionTarget transitionTarget,
Invoker invoker)
Set the
Invoker for this TransitionTarget . |
Modifier and Type | Method and Description |
---|---|
static String |
LogUtils.getTTPath(TransitionTarget tt)
Write out this TransitionTarget location in a XPath style format.
|
void |
Tracer.onEntry(TransitionTarget target) |
void |
AbstractSCXMLListener.onEntry(TransitionTarget state) |
void |
SimpleSCXMLListener.onEntry(TransitionTarget state) |
void |
AbstractStateMachine.EntryListener.onEntry(TransitionTarget entered)
Handle the entry into a TransitionTarget.
|
void |
Tracer.onExit(TransitionTarget target) |
void |
AbstractSCXMLListener.onExit(TransitionTarget state) |
void |
SimpleSCXMLListener.onExit(TransitionTarget state) |
void |
AbstractStateMachine.EntryListener.onExit(TransitionTarget exited)
No-op.
|
void |
Tracer.onTransition(TransitionTarget from,
TransitionTarget to,
Transition transition) |
void |
AbstractSCXMLListener.onTransition(TransitionTarget from,
TransitionTarget to,
Transition transition) |
void |
SimpleSCXMLListener.onTransition(TransitionTarget from,
TransitionTarget to,
Transition transition) |
void |
AbstractStateMachine.EntryListener.onTransition(TransitionTarget from,
TransitionTarget to,
Transition transition)
No-op.
|
static String |
LogUtils.transToString(TransitionTarget from,
TransitionTarget to,
Transition transition)
Create a human readable log view of this transition.
|
Modifier and Type | Method and Description |
---|---|
static void |
SCXMLSerializer.serializeOnEntry(StringBuffer b,
TransitionTarget t,
String indent)
Serialize this OnEntry object.
|
static void |
SCXMLSerializer.serializeOnExit(StringBuffer b,
TransitionTarget t,
String indent)
Serialize this OnExit object.
|
Modifier and Type | Class and Description |
---|---|
class |
Final
The class in this SCXML object model that corresponds to the
<final> SCXML element.
|
class |
History
The class in this SCXML object model that corresponds to the
<history> SCXML pseudo state element.
|
class |
Initial
The class in this SCXML object model that corresponds to the
<initial> SCXML pseudo state element.
|
class |
Parallel
The class in this SCXML object model that corresponds to the
<parallel> SCXML element, which is a wrapper element to
encapsulate parallel state machines.
|
class |
State
The class in this SCXML object model that corresponds to the
<state> SCXML element.
|
Modifier and Type | Method and Description |
---|---|
TransitionTarget |
SCXML.getInitialTarget()
Get the initial TransitionTarget.
|
TransitionTarget |
TransitionTarget.getParent()
Get the parent TransitionTarget.
|
TransitionTarget |
Executable.getParent()
Get the TransitionTarget parent.
|
TransitionTarget |
Action.getParentTransitionTarget()
Return the
TransitionTarget whose Context this action
executes in. |
TransitionTarget |
Path.getPathScope()
Get the farthest transition target from root which is not being exited
nor entered by the transition (null if scope is document root).
|
TransitionTarget |
Transition.getRuntimeTarget()
Deprecated.
A transition may have multiple targets,
use getRuntimeTargets() instead.
|
TransitionTarget |
Transition.getTarget()
Deprecated.
A transition may have multiple targets,
use getTargets() instead.
|
Modifier and Type | Method and Description |
---|---|
void |
SCXML.addChild(TransitionTarget tt)
Add an immediate child target of the SCXML root.
|
void |
State.addChild(TransitionTarget tt)
Add a child transition target.
|
void |
Parallel.addChild(TransitionTarget tt)
Add a child.
|
void |
SCXML.addTarget(TransitionTarget target)
Add a target to this SCXML document.
|
void |
SCXML.setInitialTarget(TransitionTarget initialTarget)
Set the initial TransitionTarget.
|
void |
TransitionTarget.setParent(TransitionTarget parent)
Set the parent TransitionTarget.
|
void |
Executable.setParent(TransitionTarget parent)
Set the TransitionTarget parent.
|
void |
Transition.setTarget(TransitionTarget target)
Deprecated.
Use setTargets(List) instead.
|
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.