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, waitForTickpublic void init(MicroAgentInterpreter interpreter, Object agent)
interpreter - The interpreter.public IFuture agentCreated()
agentCreated in interface IMicroAgentagentCreated in class MicroAgentpublic void executeBody()
executeBody in interface IMicroAgentexecuteBody in class MicroAgentpublic void messageArrived(Map msg, MessageType mt)
messageArrived in interface IMicroAgentmessageArrived in class MicroAgentmsg - The message.mt - The message type.public IFuture agentKilled()
agentKilled in interface IMicroAgentagentKilled in class MicroAgentpublic Object getPojoAgent()
getPojoAgent in interface IPojoMicroAgentCopyright © 2012. All Rights Reserved.