public class PojoBDIAgent extends BDIAgent implements IPojoMicroAgent
MicroAgent.ExecuteWaitForStep| Constructor and Description |
|---|
PojoBDIAgent() |
| 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.
|
addBeliefListener, addInitArgs, adoptPlan, adoptPlan, createChangeEvent, dispatchTopLevelGoal, dropGoal, getAbstractBeliefValue, getAgent, getGoal, getGoals, getGoals, getInitCalls, observeValue, observeValue, performInitWrites, publishToolBeliefEvent, removeBeliefListener, setAbstractBeliefValue, unobserveValue, writeArrayField, writeArrayParameterField, writeField, writeParameterFieldaddMessageHandler, addService, addService, addService, addService, addService, createReply, createResultListener, createResultListener, createServiceContainer, getAgentAdapter, getAgentName, getArgument, getArgument, getArguments, getClassLoader, getComponentAdapter, getComponentDescription, getComponentIdentifier, getConfiguration, getExternalAccess, getFetcher, getInterpreter, getLogger, getModel, getNfPropertyMetaInfo, getNonFunctionalPropertyNames, getNonFunctionalPropertyValue, getNonFunctionalPropertyValue, getParentAccess, getProperty, getRawService, getRawService, getRawServices, getRequiredService, getRequiredServicePropertyProvider, getRequiredServices, getResults, getServiceContainer, getServiceProvider, getTime, hasEventTargets, hasRequiredServicePropertyProvider, init, isComponentThread, killAgent, killComponent, publishEvent, removeMessageHandler, removeService, scheduleStep, scheduleStep, sendMessage, sendMessage, sendMessageAndWait, setResultValue, subscribeToEvents, waitFor, waitFor, waitForDelay, waitForDelay, waitForDelay, 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 © 2015. All Rights Reserved.