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

java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.parser.impl.yylex.YylexParser
All Implemented Interfaces:
IWorldMessageParser, IComponent
Direct Known Subclasses:
UT2004Parser

public class YylexParser
extends java.lang.Object
implements IWorldMessageParser

TODO!:

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


Field Summary
static Token COMPONENT_ID
           
 
Constructor Summary
YylexParser(IWorldReaderProvider readerProvider, IYylex yylex, IYylexObserver yylexObserver, IComponentBus eventBus, IAgentLogger logger)
           
 
Method Summary
 Token getComponentId()
          Unique identification of the component.
 java.util.logging.Logger getLog()
           
 InfoMessage parse()
          May block.
 java.lang.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 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 Token getComponentId()
Description copied from interface: IComponent
Unique identification of the component.

Specified by:
getComponentId in interface IComponent
Returns:

getLog

public java.util.logging.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 java.lang.String toString()
Overrides:
toString in class java.lang.Object