cz.cuni.amis.pogamut.base.communication.parser.impl.yylex
Class YylexParser

Package class diagram package YylexParser
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.parser.impl.yylex.YylexParser
All Implemented Interfaces:
IWorldMessageParser, IComponent

public class YylexParser
extends Object
implements IWorldMessageParser

TODO!:

Ignores IComponentControlHelper.startPaused(), performs IComponentControlHelper.start() in both start cases.

Author:
Jimmy

Field Summary
static cz.cuni.amis.utils.token.Token COMPONENT_ID
           
 
Constructor Summary
YylexParser(IWorldReaderProvider readerProvider, IYylex yylex, IYylexObserver yylexObserver, IComponentBus eventBus, IAgentLogger logger)
           
 
Method Summary
 cz.cuni.amis.utils.token.Token getComponentId()
          Unique identification of the component.
 Logger getLog()
           
 InfoMessage parse()
          May block.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COMPONENT_ID

public static final cz.cuni.amis.utils.token.Token COMPONENT_ID
Constructor Detail

YylexParser

@Inject
public YylexParser(IWorldReaderProvider readerProvider,
                          IYylex yylex,
                          @Nullable
                          IYylexObserver yylexObserver,
                          IComponentBus eventBus,
                          IAgentLogger logger)
            throws CommunicationException
Throws:
CommunicationException
Method Detail

getComponentId

public cz.cuni.amis.utils.token.Token getComponentId()
Description copied from interface: IComponent
Unique identification of the component.

Specified by:
getComponentId in interface IComponent
Returns:

getLog

public Logger getLog()

parse

public InfoMessage parse()
                  throws ComponentNotRunningException,
                         ComponentPausedException,
                         ParserException
Description copied from interface: IWorldMessageParser
May block.

Should get and parse next message from the reader.

Specified by:
parse in interface IWorldMessageParser
Returns:
parsed message
Throws:
ComponentNotRunningException
ComponentPausedException
ParserException

toString

public String toString()
Overrides:
toString in class Object


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