public class SCInstance extends Object implements Serializable
SCInstance
performs book-keeping functions for
a particular execution of a state chart represented by a
SCXML
object.Modifier and Type | Method and Description |
---|---|
Context |
getContext(TransitionTarget transitionTarget)
Get the
Context for this TransitionTarget . |
Evaluator |
getEvaluator()
Get the
Evaluator . |
SCXMLExecutor |
getExecutor()
Get the
SCXMLExecutor this instance is attached to. |
Invoker |
getInvoker(TransitionTarget transitionTarget)
Get the
Invoker for this TransitionTarget . |
Map |
getInvokers()
Return the Map of
Invoker s currently "active". |
Set |
getLastConfiguration(History history)
Get the last configuration for this history.
|
NotificationRegistry |
getNotificationRegistry()
Get the notification registry.
|
Context |
getRootContext()
Get the root context.
|
boolean |
isDone(TransitionTarget transitionTarget)
Get the completion status for this composite
TransitionTarget . |
boolean |
isEmpty(History history)
Check whether we have prior history.
|
Invoker |
newInvoker(String targettype)
Get the
Invoker for this TransitionTarget . |
void |
reset(History history)
Resets the history state.
|
void |
setDone(TransitionTarget transitionTarget,
boolean done)
Set the completion status for this composite
TransitionTarget . |
void |
setInvoker(TransitionTarget transitionTarget,
Invoker invoker)
Set the
Invoker for this TransitionTarget . |
void |
setLastConfiguration(History history,
Set lc)
Set the last configuration for this history.
|
public Evaluator getEvaluator()
Evaluator
.public Context getRootContext()
public NotificationRegistry getNotificationRegistry()
public Context getContext(TransitionTarget transitionTarget)
Context
for this TransitionTarget
.
If one is not available it is created.transitionTarget
- The TransitionTarget.public Set getLastConfiguration(History history)
history
- The history.public void setLastConfiguration(History history, Set lc)
history
- The history.lc
- The lastConfiguration to set.public boolean isEmpty(History history)
history
- The history.public void reset(History history)
history
- The history.SCXMLExecutor.reset()
public SCXMLExecutor getExecutor()
SCXMLExecutor
this instance is attached to.SCXMLExecutor
public Invoker newInvoker(String targettype) throws InvokerException
Invoker
for this TransitionTarget
.
May return null
. A non-null Invoker
will be
returned if and only if the TransitionTarget
is
currently active and contains an <invoke> child.targettype
- The type of the target being invoked.Invoker
for the specified type, if an
invoker class is registered against that type,
null
otherwise.InvokerException
- When a suitable Invoker
cannot
be instantiated.public Invoker getInvoker(TransitionTarget transitionTarget)
Invoker
for this TransitionTarget
.
May return null
. A non-null Invoker
will be
returned if and only if the TransitionTarget
is
currently active and contains an <invoke> child.transitionTarget
- The TransitionTarget
.public void setInvoker(TransitionTarget transitionTarget, Invoker invoker)
Invoker
for this TransitionTarget
.transitionTarget
- The TransitionTarget.invoker
- The Invoker.public Map getInvokers()
Invoker
s currently "active".public boolean isDone(TransitionTarget transitionTarget)
TransitionTarget
.transitionTarget
- The TransitionTarget
.public void setDone(TransitionTarget transitionTarget, boolean done)
TransitionTarget
.transitionTarget
- The TransitionTarget.done
- The completion status.Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.