public class PojoMicroAgent extends MicroAgent implements IPojoMicroAgent
MicroAgent.ExecuteWaitForStep
Constructor and Description |
---|
PojoMicroAgent() |
Modifier and Type | Method and Description |
---|---|
IFuture |
agentCreated()
Called once after agent creation.
|
IFuture |
agentKilled()
Called just before the agent is removed from the platform.
|
void |
executeBody()
Execute the functional body of the agent.
|
Object |
getPojoAgent()
Get the agent.
|
void |
init(MicroAgentInterpreter interpreter,
Object agent)
Init the micro agent with the interpreter.
|
void |
messageArrived(Map msg,
MessageType mt)
Called, whenever a message is received.
|
addComponentListener, addMessageHandler, addService, addService, createComponentIdentifier, createComponentIdentifier, createComponentIdentifier, createReply, createResultListener, createResultListener, createServiceContainer, getAgentAdapter, getAgentName, getArgument, getArguments, getChildren, getComponentAdapter, getComponentDescription, getComponentIdentifier, getConfiguration, getExternalAccess, getFetcher, getLogger, getModel, getParent, getProperty, getRawService, getRawServices, getRequiredService, getRequiredServices, getResults, getServiceContainer, getServiceProvider, getTime, init, isAtBreakpoint, killAgent, killComponent, removeComponentListener, removeMessageHandler, removeService, scheduleStep, sendMessage, sendMessage, sendMessageAndWait, setResultValue, waitFor, waitForTick
public void init(MicroAgentInterpreter interpreter, Object agent)
interpreter
- The interpreter.public IFuture agentCreated()
agentCreated
in interface IMicroAgent
agentCreated
in class MicroAgent
public void executeBody()
executeBody
in interface IMicroAgent
executeBody
in class MicroAgent
public void messageArrived(Map msg, MessageType mt)
messageArrived
in interface IMicroAgent
messageArrived
in class MicroAgent
msg
- The message.mt
- The message type.public IFuture agentKilled()
agentKilled
in interface IMicroAgent
agentKilled
in class MicroAgent
public Object getPojoAgent()
getPojoAgent
in interface IPojoMicroAgent
Copyright © 2012. All Rights Reserved.