[Pando-devel] Message construction
Status: Alpha
Brought to you by:
camross
|
From: Volodymyr B. <vb...@mi...> - 2008-01-21 18:57:05
|
Hi,
I would like to clarify how the messages from the console
will be dispatched to the FIPA agents
Assume we have this situation:
DC : CM > connect net.sf.pando.prototypes.fipa_agent_one
CN : net.sf.pando.prototypes.fipa_agent_one : CM >
In this situation the connection to the agent is active,
and the connection is in the command mode. The info mode
will display the statistics about the FIPA agent.
Now the user of the console can type the message command
to display the default message.
CN : net.sf.pando.prototypes.fipa_agent_one : CM > message
(inform
:sender (agent-identifier :name fipa-console)
:receiver (set (agent-identifier :name
net.sf.pando.prototypes.fipa_agent_one))
:content “content is empty”
:language Prolog)
To add the content of the message:
CN : net.sf.pando.prototypes.fipa_agent_one : CM > content
"weather (today, raining)"
Displaying the message after the content was added:
CN : net.sf.pando.prototypes.fipa_agent_one : CM > message
(inform
:sender (agent-identifier :name fipa-console)
:receiver (set (agent-identifier :name
net.sf.pando.prototypes.fipa_agent_one))
:content
"weather (today, raining)"
:language Prolog)
Adding an ontology name to the message:
CN : net.sf.pando.prototypes.fipa_agent_one : CM >
ontology world-politics
Displaying the message after ontology name was added
CN : net.sf.pando.prototypes.fipa_agent_one : CM > message
(inform
:sender (agent-identifier :name fipa-console)
:receiver (set (agent-identifier :name
net.sf.pando.prototypes.fipa_agent_one))
:content
"weather (today, raining)"
:ontology world-politics
:language Prolog)
CN : net.sf.pando.prototypes.fipa_agent_one : CM > send
The message will be verified to make sure all the critical
compotes are specified. If everything is ok, the message
will be send.
The user can change or add all the other optional
properties of the message by following the approaches
above. In addition, the communicative act can be changed
the same way. For example going from inform act to request
act.
Cameron please let me know what you think about this
approach of contacting a message.
Cheers
Volodymyr Babiy
|