com.cometway.states
Interface TransitionInterface

All Known Implementing Classes:
AutoTransition, ReflectionTransition

public interface TransitionInterface

This interface defines methods necessary to test for a state transition.


Method Summary
 java.lang.String execute()
          Tests the transition for the specified object returning the name of the new State if the transition was successful; null otherwise.
 java.lang.String getName()
          Returns the name of this transition.
 

Method Detail

execute

java.lang.String execute()
                         throws TransitionException
Tests the transition for the specified object returning the name of the new State if the transition was successful; null otherwise.

Throws:
TransitionException - if there is a problem executing the transition.

getName

java.lang.String getName()
Returns the name of this transition.