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
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
|
COMPONENT_ID
public static final cz.cuni.amis.utils.token.Token COMPONENT_ID
YylexParser
@Inject
public YylexParser(IWorldReaderProvider readerProvider,
IYylex yylex,
@Nullable
IYylexObserver yylexObserver,
IComponentBus eventBus,
IAgentLogger logger)
throws CommunicationException
- Throws:
CommunicationException
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.