public abstract class TransitionTarget extends Object implements Serializable, Observable
| Constructor and Description |
|---|
TransitionTarget()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other)
Enforce identity equality only
|
EnterableState |
getAncestor(int level)
Get the ancestor of this TransitionTarget at specified level
|
String |
getId()
Get the identifier for this transition target (may be null).
|
int |
getNumberOfAncestors() |
Integer |
getObservableId() |
EnterableState |
getParent()
Get the parent TransitionTarget.
|
int |
hashCode()
Enforce returning identity based hascode
|
boolean |
isDescendantOf(TransitionTarget context)
Checks whether this transition target (State or Parallel) is a
descendant of the transition target context.
|
void |
setId(String id)
Set the identifier for this transition target.
|
void |
setObservableId(Integer observableId)
Sets the observableId for this Observable, which must be unique within the SCXML state machine
|
protected void |
setParent(EnterableState parent)
Set the parent EnterableState.
|
protected void |
updateDescendantsAncestors()
Update TransitionTarget descendants their ancestors
|
public TransitionTarget()
public final Integer getObservableId()
getObservableId in interface Observablepublic final void setObservableId(Integer observableId)
observableId - the observableIdpublic final String getId()
public final void setId(String id)
id - The id to set.public int getNumberOfAncestors()
public EnterableState getAncestor(int level)
level - the level of the ancestor to return, zero being toppublic EnterableState getParent()
protected void setParent(EnterableState parent)
The parent of a TransitionTarget must be of type EnterableState as a History (as only non-EnterableState) TransitionTarget cannot have children.
parent - The parent state to setprotected void updateDescendantsAncestors()
public final boolean isDescendantOf(TransitionTarget context)
context - TransitionTarget context - a potential ancestorpublic final int hashCode()
hashCode in class ObjectSystem.identityHashCode(this)Copyright © 2005–2015 The Apache Software Foundation. All rights reserved.