|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcz.cuni.amis.pogamut.base.communication.command.impl.Act
public final class Act

TODO!
Ignores IComponentControlHelper.startPaused(), performs IComponentControlHelper.start() in both start cases.
| Field Summary | |
|---|---|
static Token |
COMPONENT_ID
|
static java.lang.String |
DEFAULT_LINE_END
Default termination of commands. |
| Constructor Summary | |
|---|---|
Act(IWorldWriterProvider writerProvider,
ICommandSerializer serializer,
IComponentBus eventBus,
IAgentLogger logger)
|
|
| Method Summary | |
|---|---|
void |
act(CommandMessage command)
Sends command through the writer. |
void |
addCommandListener(java.lang.Class commandClass,
ICommandListener listener)
Attach listener to outgoing commands from body. |
void |
enableJMX(javax.management.MBeanServer mBeanServer,
javax.management.ObjectName parent)
Method for starting the JMX extension of the class. |
Token |
getComponentId()
Unique identification of the component. |
LogCategory |
getLog()
|
boolean |
isCommandListening(java.lang.Class commandClass,
ICommandListener listener)
Whether the listener is listening for commands of commandClass. |
void |
removeCommandListener(java.lang.Class commandClass,
ICommandListener listener)
Remove the listener to outgoing commands. |
protected void |
sendCommand(CommandMessage command)
Provides the implementation how to send 'command' through 'this.writer'. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Token COMPONENT_ID
public static final java.lang.String DEFAULT_LINE_END
| Constructor Detail |
|---|
@Inject
public Act(IWorldWriterProvider writerProvider,
ICommandSerializer serializer,
IComponentBus eventBus,
IAgentLogger logger)
| Method Detail |
|---|
public Token getComponentId()
IComponent
getComponentId in interface IComponentpublic LogCategory getLog()
protected void sendCommand(CommandMessage command)
public void act(CommandMessage command)
act in interface IActcommand -
CommunicationException
public void addCommandListener(java.lang.Class commandClass,
ICommandListener listener)
IActAfter the command is sent to the world, listener will be notified.
addCommandListener in interface IActcommandClass - which command you want to listen to
public boolean isCommandListening(java.lang.Class commandClass,
ICommandListener listener)
IAct
isCommandListening in interface IAct
public void removeCommandListener(java.lang.Class commandClass,
ICommandListener listener)
IAct
removeCommandListener in interface IActcommandClass - which command you want to listen to
public void enableJMX(javax.management.MBeanServer mBeanServer,
javax.management.ObjectName parent)
IJMXEnabledObject should register whatever objects it wants to expose via JMX.
enableJMX in interface IJMXEnabledmBeanServer - server where the MBean of agent is registeredparent - parent's ObjectName, should be used as base of name of
the registered MBeanpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||