public class BDIAgentMsgReceiver
extends jade.proto.states.MsgReceiver
MsgReceiver behavior from the JADE platform
and is responsible for receiving agent messages and creating
MessageGoal so that a BDI agent can process it. Message goals are
creates solely if there is an agent plan of any capability that is able to
process the message.| Modifier and Type | Class and Description |
|---|---|
class |
BDIAgentMsgReceiver.BDIAgentMatchExpression
This class implements the
MessageTemplate.MatchExpression interface from JADE and
is responsible for verifying if there is at least one agent capability
with a plan that is able to process a given message. |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.Object |
MSG_KEY |
| Constructor and Description |
|---|
BDIAgentMsgReceiver(BDIAgent agent)
Initializes this message receiver, which is associated with a BDI agent.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
done()
Returns always false, as this behavior is responsible for message
processing while a BDI agent is alive.
|
protected void |
handleMessage(jade.lang.acl.ACLMessage msg)
Creates a
MessageGoal for the received message, when handling the
message. |
action, interrupt, onEnd, reset, setDeadline, setReceivedKey, setTemplateactionWrapper, block, block, getAgent, getBehaviourName, getDataStore, getExecutionState, getParent, getRestartCounter, handle, handleBlockEvent, handleRestartEvent, isRunnable, onStart, restart, root, setAgent, setBehaviourName, setDataStore, setExecutionStatepublic BDIAgentMsgReceiver(BDIAgent agent)
agent - the BDI agent that this behavior is associated with.public boolean done()
done in class jade.proto.states.MsgReceiverMsgReceiver.done()protected void handleMessage(jade.lang.acl.ACLMessage msg)
MessageGoal for the received message, when handling the
message.handleMessage in class jade.proto.states.MsgReceiverMsgReceiver.handleMessage(jade.lang.acl.ACLMessage)