|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cometway.states.AutoTransition
public class AutoTransition
This is an implementation of TransitionInterface that will always return the state specified in the constructor.
| Constructor Summary | |
|---|---|
AutoTransition(java.lang.String name,
java.lang.String state)
Constructor for this transition. |
|
| Method Summary | |
|---|---|
java.lang.String |
execute()
Always returns the state when called. |
java.lang.String |
getName()
Returns the name of this transition. |
java.lang.String |
toString()
Returns a String representative of this transition. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AutoTransition(java.lang.String name,
java.lang.String state)
state - Name of the state to return when execute is called.| Method Detail |
|---|
public java.lang.String execute()
throws TransitionException
execute in interface TransitionInterfaceTransitionException - if there is a problem executing the transition.public java.lang.String getName()
getName in interface TransitionInterfacepublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||