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:
cz.cuni.amis.pogamut.base.communication.command.IAct, cz.cuni.amis.pogamut.base.communication.command.impl.IJNIAct, cz.cuni.amis.pogamut.base.component.IComponent

public class DefConAct
extends Object
implements cz.cuni.amis.pogamut.base.communication.command.impl.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(cz.cuni.amis.pogamut.base.component.bus.IComponentBus eventBus, cz.cuni.amis.pogamut.base.utils.logging.IAgentLogger logger)
           
 
Method Summary
 void act(cz.cuni.amis.pogamut.base.communication.messages.CommandMessage command)
           
 void addCommandListener(Class commandClass, cz.cuni.amis.pogamut.base.communication.command.ICommandListener listener)
           
 cz.cuni.amis.utils.token.IToken getComponentId()
           
 boolean isCommandListening(Class commandClass, cz.cuni.amis.pogamut.base.communication.command.ICommandListener listener)
           
 void removeCommandListener(Class commandClass, cz.cuni.amis.pogamut.base.communication.command.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(cz.cuni.amis.pogamut.base.component.bus.IComponentBus eventBus,
                        cz.cuni.amis.pogamut.base.utils.logging.IAgentLogger logger)
Method Detail

act

public void act(cz.cuni.amis.pogamut.base.communication.messages.CommandMessage command)
         throws cz.cuni.amis.pogamut.base.component.bus.exception.ComponentNotRunningException,
                cz.cuni.amis.pogamut.base.component.bus.exception.ComponentPausedException
Specified by:
act in interface cz.cuni.amis.pogamut.base.communication.command.IAct
Throws:
cz.cuni.amis.pogamut.base.component.bus.exception.ComponentNotRunningException
cz.cuni.amis.pogamut.base.component.bus.exception.ComponentPausedException

addCommandListener

public void addCommandListener(Class commandClass,
                               cz.cuni.amis.pogamut.base.communication.command.ICommandListener listener)
Specified by:
addCommandListener in interface cz.cuni.amis.pogamut.base.communication.command.IAct

isCommandListening

public boolean isCommandListening(Class commandClass,
                                  cz.cuni.amis.pogamut.base.communication.command.ICommandListener listener)
Specified by:
isCommandListening in interface cz.cuni.amis.pogamut.base.communication.command.IAct

removeCommandListener

public void removeCommandListener(Class commandClass,
                                  cz.cuni.amis.pogamut.base.communication.command.ICommandListener listener)
Specified by:
removeCommandListener in interface cz.cuni.amis.pogamut.base.communication.command.IAct

getComponentId

public cz.cuni.amis.utils.token.IToken getComponentId()
Specified by:
getComponentId in interface cz.cuni.amis.pogamut.base.component.IComponent


Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.