Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » AMP » Communication between agents through messages
Communication between agents through messages [message #760697] Sun, 04 December 2011 06:07 Go to previous message
giorgos  is currently offline giorgos
Messages: 6
Registered: October 2011
Junior Member
I was wondering how I could model agents communicating by sending and receiving messages. For example, say that we have 2 types of agents, buyers and sellers. A seller has an attribute that contains the price of a product. If a buyer wants to ask the price of the product, he should send a message to the seller and the seller should reply by sending back to the buyer a message telling him about the price.
Up to now I have thought that if a buyer wants to use the price of the product (an attribute of the seller) he could just write

a = seller.getPrice();

since the classes buyer and seller are in the same package. However, I think that this is not so realistic because in real applications an agent cannot have access in the attributes of another agent. He can only ask the other agent to give him such information.
 
Read Message
Read Message
Previous Topic:Problems with stupid model tutorial
Next Topic:AMP contains non IP-approved content?!
Goto Forum:
  


Current Time: Mon May 20 10:24:35 EDT 2013

Powered by FUDForum. Page generated in 0.01930 seconds