public class PojoMicroAgent extends MicroAgent implements IPojoMicroAgent
MicroAgent.ExecuteWaitForStep
Constructor and Description |
---|
PojoMicroAgent() |
Modifier and Type | Method and Description |
---|---|
IFuture<Void> |
agentCreated()
Called once after agent creation.
|
IFuture<Void> |
agentKilled()
Called just before the agent is removed from the platform.
|
IFuture<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.
|
void |
streamArrived(IConnection con)
Called, whenever a message is received.
|
addComponentListener, addMessageHandler, addService, addService, createReply, createResultListener, createResultListener, createServiceContainer, getAgentAdapter, getAgentName, getArgument, getArguments, getChildrenAccesses, getChildrenIdentifiers, getClassLoader, getComponentAdapter, getComponentDescription, getComponentIdentifier, getConfiguration, getExternalAccess, getFetcher, getInterpreter, getLogger, getModel, getParentAccess, getProperty, getRawService, getRawService, getRawServices, getRequiredService, getRequiredServices, getResults, getServiceContainer, getServiceProvider, getTime, init, isAtBreakpoint, isComponentThread, killAgent, killComponent, removeComponentListener, removeMessageHandler, removeService, scheduleStep, sendMessage, sendMessage, sendMessageAndWait, setResultValue, waitFor, waitForDelay, waitForTick
public void init(MicroAgentInterpreter interpreter, Object agent)
interpreter
- The interpreter.public IFuture<Void> agentCreated()
agentCreated
in interface IMicroAgent
agentCreated
in class MicroAgent
public IFuture<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 void streamArrived(IConnection con)
streamArrived
in class MicroAgent
msg
- The message.mt
- The message type.public IFuture<Void> agentKilled()
agentKilled
in interface IMicroAgent
agentKilled
in class MicroAgent
public Object getPojoAgent()
getPojoAgent
in interface IPojoMicroAgent
Copyright © 2012. All Rights Reserved.