de.esw.eengine.fsm
Class Transition
java.lang.Object
de.esw.eengine.fsm.Transition
public abstract class Transition
- extends java.lang.Object
- Since:
- 1.0
- Version:
- $Id: Transition.java 188 2005-07-10 21:32:57Z markusw $
- Author:
- markusw
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Transition
public Transition(State nextState)
- Parameters:
nextState - State this Transition points to
Transition
public Transition(java.lang.String name,
State nextState)
- Parameters:
name - Name for this TransitionnextState - State this Transition points to
match
public abstract boolean match(float delta,
java.lang.Object input)
- Parameters:
delta - Delta time since last callinput - Generic object for triggering
- Returns:
- True if this transitions condition is met, false otherwise
act
public Transition act(java.lang.Object info)
- Parameters:
info - Generic info object from last state
- Returns:
- Reference to itself
getNextState
public final State getNextState()
- Returns:
- Returns the nextState.
setNextState
public final void setNextState(State nextState)
- Parameters:
nextState - The nextState to set.
getState
public final State getState()
- Returns:
- Returns the state.
getName
public final java.lang.String getName()
- Returns:
- Returns the name.
setName
public final void setName(java.lang.String name)
- Parameters:
name - The name to set.