cz.cuni.amis.pogamut.defcon.communication.command.impl
Class DefConAct
java.lang.Object
cz.cuni.amis.pogamut.defcon.communication.command.impl.DefConAct
- All Implemented Interfaces:
- IAct, IJNIAct, IComponent
public class DefConAct
- extends Object
- implements IJNIAct
Used to queue up commands in PogamutJBotSupport. It shields user from
underlying complexities.
- Author:
- Radek 'Black_Hand' Pibil
Field Summary |
static cz.cuni.amis.utils.token.Token |
COMPONENT_ID
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COMPONENT_ID
public static final cz.cuni.amis.utils.token.Token COMPONENT_ID
DefConAct
@Inject
public DefConAct(IComponentBus eventBus,
IAgentLogger logger)
act
public void act(CommandMessage command)
throws ComponentNotRunningException,
ComponentPausedException
- Specified by:
act
in interface IAct
- Throws:
ComponentNotRunningException
ComponentPausedException
addCommandListener
public void addCommandListener(Class commandClass,
ICommandListener listener)
- Specified by:
addCommandListener
in interface IAct
isCommandListening
public boolean isCommandListening(Class commandClass,
ICommandListener listener)
- Specified by:
isCommandListening
in interface IAct
removeCommandListener
public void removeCommandListener(Class commandClass,
ICommandListener listener)
- Specified by:
removeCommandListener
in interface IAct
getComponentId
public cz.cuni.amis.utils.token.IToken getComponentId()
- Specified by:
getComponentId
in interface IComponent
Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.