cz.cuni.amis.fsm
Interface IFSM<SYMBOL,CONTEXT>

Type Parameters:
SYMBOL -
CONTEXT -
All Known Implementing Classes:
FSM, FSMNested

public interface IFSM<SYMBOL,CONTEXT>

Interface for the FSM. Contains three methods:

push() ... to insert next symbol to the FSM.

restart() ... to restart the fsm (calls restart() on all states and transitions) and set itself to the initial state

isTerminal() ... query the fsm whether it is in the terminal state


Method Summary
 boolean isTerminal()
           
 void push(CONTEXT context, SYMBOL symbol)
           
 void restart(CONTEXT context)
           
 

Method Detail

push

void push(CONTEXT context,
          SYMBOL symbol)

restart

void restart(CONTEXT context)

isTerminal

boolean isTerminal()