cz.cuni.amis.pogamut.udk.communication.translator.server.state
Class VehicleListState

Package class diagram package VehicleListState
java.lang.Object
  extended by cz.cuni.amis.pogamut.udk.communication.translator.server.support.AbstractServerFSMState<InfoMessage,CONTEXT>
      extended by cz.cuni.amis.pogamut.udk.communication.translator.server.support.ServerListState<Vehicle,TranslatorContext>
          extended by cz.cuni.amis.pogamut.udk.communication.translator.server.state.VehicleListState
All Implemented Interfaces:
cz.cuni.amis.fsm.IFSMState<InfoMessage,TranslatorContext>

public class VehicleListState
extends ServerListState<Vehicle,TranslatorContext>

Takes care of the vehicle list. It stores them inside a List object and when END message comes it sends them to the world view via VehicleListObtained event.

Last state of the handshake - we switch from this state to the ConfigureMessageExpectedState.

Author:
Radek 'Black_Hand' Pibil

Constructor Summary
VehicleListState()
           
 
Method Summary
 void innerStateSymbol(TranslatorContext context, InfoMessage symbol)
           
 void stateLeaving(TranslatorContext context, cz.cuni.amis.fsm.IFSMState<InfoMessage,TranslatorContext> toState, InfoMessage symbol)
           
 
Methods inherited from class cz.cuni.amis.pogamut.udk.communication.translator.server.support.ServerListState
getList, init, newList, restart, stateEntering
 
Methods inherited from class cz.cuni.amis.pogamut.udk.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

VehicleListState

public VehicleListState()
Method Detail

stateLeaving

public void stateLeaving(TranslatorContext context,
                         cz.cuni.amis.fsm.IFSMState<InfoMessage,TranslatorContext> toState,
                         InfoMessage symbol)
Specified by:
stateLeaving in interface cz.cuni.amis.fsm.IFSMState<InfoMessage,TranslatorContext>
Overrides:
stateLeaving in class ServerListState<Vehicle,TranslatorContext>

innerStateSymbol

public void innerStateSymbol(TranslatorContext context,
                             InfoMessage symbol)
Overrides:
innerStateSymbol in class ServerListState<Vehicle,TranslatorContext>


Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.