javabot
Class ActExecutor
java.lang.Object
javabot.ActExecutor
public class ActExecutor
- extends Object
Executes a command and reports to all listeners to that command.
SendCommand is called by PogamutJBotSupport periodically when batches are being sent.
- Author:
- Radek 'Black_Hand' Pibil
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)
|
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)
|
void |
sendCommand(DefConCommand command)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ActExecutor
public ActExecutor()
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
- 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)
isCommandListening
public boolean isCommandListening(Class commandClass,
cz.cuni.amis.pogamut.base.communication.command.ICommandListener listener)
removeCommandListener
public void removeCommandListener(Class commandClass,
cz.cuni.amis.pogamut.base.communication.command.ICommandListener listener)
sendCommand
public void sendCommand(DefConCommand command)
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.