cz.cuni.amis.pogamut.base.communication.parser.impl.yylex
Class YylexParser
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
COMPONENT_ID
public static final Token COMPONENT_ID
YylexParser
@Inject
public YylexParser(IWorldReaderProvider readerProvider,
IYylex yylex,
@Nullable
IYylexObserver yylexObserver,
IComponentBus eventBus,
IAgentLogger logger)
throws CommunicationException
- Throws:
CommunicationException
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