org.mobicents.fsm
Class State
java.lang.Object
org.mobicents.fsm.State
- All Implemented Interfaces:
- Runnable
public class State
- extends Object
- implements Runnable
Implements single state of the FSM.
- Author:
- kulikov
|
Field Summary |
protected long |
timeout
|
timeout
protected long timeout
State
protected State(FSM fsm,
String name)
setOnEnter
public void setOnEnter(StateEventHandler handler)
setOnExit
public void setOnExit(StateEventHandler handler)
enter
protected void enter()
leave
protected void leave()
tick
protected void tick(long now)
getName
public String getName()
getFSM
public FSM getFSM()
add
protected void add(Transition t)
signal
public State signal(String name)
throws UnknownTransitionException
- Signals to leave this state over specified transition
- Parameters:
name - the name of the transition.
- Throws:
UnknownTransitionException
toString
public String toString()
- Overrides:
toString in class Object
run
public void run()
- Specified by:
run in interface Runnable
Copyright © 2013 TeleStax, Inc.. All Rights Reserved.