cz.cuni.amis.pogamut.ut2004.communication.translator.server.state
Class NavPointListState

java.lang.Object
  extended by cz.cuni.amis.pogamut.ut2004.communication.translator.server.support.AbstractServerFSMState<InfoMessage,TranslatorContext>
      extended by cz.cuni.amis.pogamut.ut2004.communication.translator.server.state.NavPointListState
All Implemented Interfaces:
IFSMState<InfoMessage,TranslatorContext>

public class NavPointListState
extends AbstractServerFSMState<InfoMessage,TranslatorContext>

Takes care of the navpoint list. It stores them inside a List object and when END message comes it sends them to the world view via NavPointListObtained event, note that before we send the nav points we're doing the preprocessing of those navpoints to interconnect them with links (NavPointNeighbourLink) filling respective fileds of incomingEdges and outgoingEdges.

The processing of navpoints and it's links is done via TranslatorContext.processNavPointLinks().


Constructor Summary
NavPointListState()
           
 
Method Summary
 void init(TranslatorContext context)
           
protected  void innerStateSymbol(TranslatorContext context, InfoMessage symbol)
           
 void restart(TranslatorContext context)
           
 void stateEntering(TranslatorContext context, IFSMState<InfoMessage,TranslatorContext> fromState, InfoMessage symbol)
           
 void stateLeaving(TranslatorContext context, IFSMState<InfoMessage,TranslatorContext> toState, InfoMessage symbol)
           
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.translator.server.support.AbstractServerFSMState
stateSymbol, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NavPointListState

public NavPointListState()
Method Detail

stateEntering

public void stateEntering(TranslatorContext context,
                          IFSMState<InfoMessage,TranslatorContext> fromState,
                          InfoMessage symbol)

stateLeaving

public void stateLeaving(TranslatorContext context,
                         IFSMState<InfoMessage,TranslatorContext> toState,
                         InfoMessage symbol)

innerStateSymbol

protected void innerStateSymbol(TranslatorContext context,
                                InfoMessage symbol)
Specified by:
innerStateSymbol in class AbstractServerFSMState<InfoMessage,TranslatorContext>

init

public void init(TranslatorContext context)

restart

public void restart(TranslatorContext context)