public class NestedState<T extends Event> extends State<T>
| Modifier and Type | Field and Description |
|---|---|
protected Statechart<T> |
m_parent
The statechart that contains this nested state
|
m_id, m_name, s_counterLock, s_idCounter| Modifier | Constructor and Description |
|---|---|
|
NestedState(java.lang.String name)
Creates a new box state with a given name
|
protected |
NestedState(java.lang.String name,
int id)
Creates a new box state with a given name and a predefined ID
|
|
NestedState(java.lang.String name,
Statechart<T>... s)
Creates a new box state with a given name and enclosed statechart
|
| Modifier and Type | Method and Description |
|---|---|
NestedState<T> |
addStatechart(Statechart<T> s)
Sets the enclosed statechart that this box state contains
|
NestedState<T> |
clone(Statechart<T> parent) |
State<T> |
getAnyAtomicChild()
Returns an arbitrary state inside this nested state that is not a
NestedState. |
java.util.List<Statechart<T>> |
getContents()
Gets the statecharts contained within this nested state
|
void |
reset()
Resets this state
|
NestedState<T> |
setParent(Statechart<T> statechart)
Sets the parent of this nested state.
|
protected Statechart<T extends Event> m_parent
public NestedState(java.lang.String name)
name - The nameprotected NestedState(java.lang.String name,
int id)
name - The nameid - The IDpublic NestedState(java.lang.String name,
Statechart<T>... s)
name - The names - The statechartspublic NestedState<T> addStatechart(Statechart<T> s)
s - The statechartpublic NestedState<T> setParent(Statechart<T> statechart)
statechart - The parentpublic void reset()
Statepublic NestedState<T> clone(Statechart<T> parent)
public java.util.List<Statechart<T>> getContents()
public State<T> getAnyAtomicChild()
NestedState. The method recurses inside statecharts.
This method is mostly used for the graphical
rendering of a statechart.null if no such state existsCopyright © Sylvain HallĂ©. All Rights Reserved.