|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.dpml.state.DefaultState
public class 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 namepublic 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 substatespublic 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 flagMethod Detail |
---|
public State getParent()
getParent
in interface State
public void setParent(State state)
setParent
in interface State
state
- the parent statepublic String getName()
getName
in interface State
public Trigger[] getTriggers()
getTriggers
in interface State
public State[] getStatePath()
getStatePath
in interface State
public State[] getStates()
getStates
in interface State
public Transition[] getTransitions()
getTransitions
in interface State
public Operation[] getOperations()
getOperations
in interface State
public Interface[] getInterfaces()
getInterfaces
in interface State
public boolean getTerminal()
public boolean isTerminal()
isTerminal
in interface State
public String toString()
toString
in class Object
public boolean equals(Object other)
equals
in class Object
other
- the other object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |