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.
|
boolean |
isAtBreakpoint(String[] breakpoints)
Test if the agent's execution is currently at one of the
given breakpoints.
|
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, isComponentThread, killAgent, killComponent, removeComponentListener, removeMessageHandler, removeService, scheduleStep, sendMessage, sendMessage, sendMessageAndWait, setResultValue, waitFor, waitForDelay, waitForTickpublic void init(MicroAgentInterpreter interpreter, Object agent)
interpreter - The interpreter.public IFuture<Void> agentCreated()
agentCreated in interface IMicroAgentagentCreated in class MicroAgentpublic IFuture<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 void streamArrived(IConnection con)
streamArrived in class MicroAgentmsg - The message.mt - The message type.public IFuture<Void> agentKilled()
agentKilled in interface IMicroAgentagentKilled in class MicroAgentpublic boolean isAtBreakpoint(String[] breakpoints)
isAtBreakpoint in class MicroAgentbreakpoints - An array of breakpoints.public Object getPojoAgent()
getPojoAgent in interface IPojoMicroAgentCopyright © 2012. All Rights Reserved.