|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.dpml.state.DefaultState
Default implementation of an application state descriptor.
| Field Summary |
| Fields inherited from interface net.dpml.state.State |
NULL_STATE, TYPE |
| Constructor Summary | |
DefaultState()
Creation of a new state. |
|
DefaultState(String name)
Creation of a new state. |
|
DefaultState(String name,
Trigger[] triggers,
Transition[] transitions,
Interface[] interfaces,
Operation[] operations,
State[] states)
Creation of a new non-terminal state. |
|
DefaultState(String name,
Trigger[] triggers,
Transition[] transitions,
Interface[] interfaces,
Operation[] operations,
State[] states,
boolean terminal)
Creation of a new state. |
|
| Method Summary | |
boolean |
equals(Object other)
Compare this object to another for equality. |
Interface[] |
getInterfaces()
Return the array of management interfaces associated with the state. |
String |
getName()
Return the name of the state. |
Operation[] |
getOperations()
Return the array of operations associated with the state. |
State |
getParent()
Return the parent state to this state or null if this is the root of a state graph. |
State[] |
getStatePath()
Return the state path. |
State[] |
getStates()
Return the substates within this state. |
boolean |
getTerminal()
Return the terminal flag. |
Transition[] |
getTransitions()
Return the array of transtions associated with the state. |
Trigger[] |
getTriggers()
Return the array of triggers associated with the state. |
int |
hashCode()
Compute the hashcode for this instance. |
boolean |
isTerminal()
Test is the state is a terminal state. |
void |
setParent(State state)
Set the parent state. |
String |
toString()
Return a string representation of the instance. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DefaultState()
public DefaultState(String name)
name - the state name
public DefaultState(String name,
Trigger[] triggers,
Transition[] transitions,
Interface[] interfaces,
Operation[] operations,
State[] states)
name - the state nametriggers - an array of triggerstransitions - an array of state transitionsinterfaces - an array of management interface declarationsoperations - an array of operationsstates - an array of substates
public DefaultState(String name,
Trigger[] triggers,
Transition[] transitions,
Interface[] interfaces,
Operation[] operations,
State[] states,
boolean terminal)
name - the state nametriggers - an array of triggerstransitions - an array of state transitionsinterfaces - an array of management interface declarationsoperations - an array of operationsstates - an array of substatesterminal - the terminal flag| Method Detail |
public State getParent()
getParent in interface Statepublic void setParent(State state)
setParent in interface Statestate - the parent statepublic String getName()
getName in interface Statepublic Trigger[] getTriggers()
getTriggers in interface Statepublic State[] getStatePath()
getStatePath in interface Statepublic State[] getStates()
getStates in interface Statepublic Transition[] getTransitions()
getTransitions in interface Statepublic Operation[] getOperations()
getOperations in interface Statepublic Interface[] getInterfaces()
getInterfaces in interface Statepublic boolean getTerminal()
public boolean isTerminal()
isTerminal in interface Statepublic String toString()
public boolean equals(Object other)
other - the other object
public int hashCode()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||