|
ABLE, Version 1.1b | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class defines the base interface, or behavior, which all FIPA ACC agents must support.
Method Summary | |
void |
forward(FipaAclMessage theAclMessage)
Forward a message to the agent(s) addressed on the envelope. |
void |
forward(java.lang.String theAclMessage)
Forward a message to the agent(s) addressed on the envelope. |
Methods inherited from interface com.ibm.able.platform.agents.FipaAgent |
destroyAgent,
executeAgent,
invokeAgent,
moveAgent,
msgAcceptProposal,
msgAgree,
msgCancel,
msgCfp,
msgConfirm,
msgDisconfirm,
msgFailure,
msgInform,
msgInformIf,
msgInformRef,
msgNotUnderstood,
msgPropose,
msgQueryIf,
msgQueryRef,
msgRefuse,
msgRejectProposal,
msgRequest,
msgRequestWhen,
msgRequestWhenever,
msgSubscribe,
quitAgent,
resumeAgent,
suspendAgent,
waitAgent,
wakeUpAgent |
Methods inherited from interface com.ibm.able.agents.AbleAgent |
addEventConnection,
getAgentAddr,
getAgentHost,
getAgentName,
getDataSource,
getNumEpochs,
getProcessList,
isActiveDataSource,
removeEventConnection,
setActiveDataSource,
setProcessList |
Methods inherited from interface com.ibm.able.AbleBeanContainer |
addBean,
containsBean,
containsBean,
getBean,
getBeans,
removeAllBeans,
removeBean |
Methods inherited from interface com.ibm.able.beans.AbleSensorManager |
addSensor,
getSensors,
invokeSensor,
removeSensor,
setSensors |
Methods inherited from interface com.ibm.able.beans.AbleEffectorManager |
addEffector,
getEffectors,
invokeEffector,
removeEffector,
setEffectors |
Methods inherited from interface com.ibm.able.AbleEventListener |
handleAbleEvent |
Methods inherited from interface com.ibm.able.AbleEventQueueProcessor |
processAbleEvent,
processNoEventProcessingEnabledSituation,
processTimerEvent |
Method Detail |
public void forward(FipaAclMessage theAclMessage) throws java.rmi.RemoteException
This version of forward() takes an AclMessage object whose :content slot can be either an AbleEvent object or any arbitrary object. If the content slot contains an instance of an AbleEvent, then that event is forwarded to each recipient by calling each recipient's handleAbleEvent() method and passing the AbleEvent as an argument.
If the content slot contains an arbitrary object (that isn't an instance of an AbleEvent), then an AbleEvent object is created such that the event action is derived from the Fipa.AclMessageType and the AclMessage itself is set to be the event's action argument. This newly created AbleEvent is then forwarded to each recipient by calling each recipient's handleAbleEvent() method and passing the AbleEvent as an argument.
theAclMessage
- an AclMessage object whose ":content" slot is either
public void forward(java.lang.String theAclMessage) throws java.rmi.RemoteException
This version of forward() takes a string KQML message, parses it, and creates the necessary structures which are forwarded on to the recipients.
theAclMessage
- a message in KQML format.
|
ABLE, Version 1.1b | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |