|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.dpml.state.DefaultTransition
public class DefaultTransition
Default implemention of a state transition descriptor.
Constructor Summary | |
---|---|
DefaultTransition(String name,
String target)
Creation of a new transition. |
|
DefaultTransition(String name,
String target,
Operation operation)
Creation of a new transition. |
Method Summary | |
---|---|
boolean |
equals(Object other)
Compare this object to another for equality. |
String |
getName()
Return the transition name |
Operation |
getOperation()
Return an operation associated with the transition. |
State |
getState()
Return the state that this transition is a part of. |
String |
getTargetName()
Return the transition target state name |
int |
hashCode()
Compute the hashcode for this instance. |
void |
setState(State state)
Set the state that this transition is a part of. |
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 DefaultTransition(String name, String target)
name
- the transition nametarget
- the transit target state namepublic DefaultTransition(String name, String target, Operation operation)
name
- the transition nametarget
- the transit target state nameoperation
- optional transition operationMethod Detail |
---|
public void setState(State state)
setState
in interface Transition
state
- the owning statepublic State getState()
getState
in interface Transition
public String getName()
getName
in interface Action
public String getTargetName()
getTargetName
in interface Transition
public Operation getOperation()
getOperation
in interface Transition
public boolean equals(Object other)
equals
in class Object
other
- the other object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |