com.googlecode.jinahya.util.fsm
Class Transition

java.lang.Object
  extended by com.googlecode.jinahya.util.fsm.Transition

public class Transition
extends Object

Transition between states.

Author:
Jin Kwon

Constructor Summary
Transition(State source, State target)
          Creates a new instance.
 
Method Summary
 boolean equals(Object obj)
           
 State getSource()
          Returns the source state.
 State getTarget()
          Returns the target state.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Transition

public Transition(State source,
                  State target)
Creates a new instance.

Parameters:
source - source state
target - target state
Method Detail

getSource

public final State getSource()
Returns the source state.

Returns:
source state

getTarget

public final State getTarget()
Returns the target state.

Returns:
target state

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.