cz.cuni.amis.pogamut.defcon.communication.command.impl
Class DefConAct

Package class diagram package DefConAct
java.lang.Object
  extended by 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
           
 
Constructor Summary
DefConAct(IComponentBus eventBus, IAgentLogger logger)
           
 
Method Summary
 void act(CommandMessage command)
           
 void addCommandListener(Class commandClass, ICommandListener listener)
           
 cz.cuni.amis.utils.token.IToken getComponentId()
           
 boolean isCommandListening(Class commandClass, ICommandListener listener)
           
 void removeCommandListener(Class commandClass, ICommandListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPONENT_ID

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

DefConAct

@Inject
public DefConAct(IComponentBus eventBus,
                        IAgentLogger logger)
Method Detail

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.