[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: communication between agents
From: |
Gadi ORON |
Subject: |
Re: communication between agents |
Date: |
Thu, 13 Apr 2000 13:14:19 +0200 (MEST) |
Hi,
On Tue, 11 Apr 2000, iwata wrote:
> I am a new comer for this list and multi-agent field.
> I would like some agents to communicate. For example,
> Bug1 says "I am hungry," and
> Bug2 responds to Bug1 "I found food at site A."
>
> I do not have an idea how to implement this.
> I appreciate if someone shows me a simple program of swarm
> program.
This should not be very difficult, the only thing which might be of some
difficulty is to know who should be getting the message. You have 2
strategies:
1. Each bug takes care of sending the message.
In this case simply define a methode for the bugs ex.
- (site) foundFood
{ if(i_know_of_food) return site; else return nil; }
Whene someone looks for food it should say to all of its known bugs
[bug foundFood] and check the result.
2. The ModelSwarm is in charge of this.
In this case you shuold define a list of bugs looking for food and then
send them a message which inidcates where it is.
Hope this helps.
--
============================== Gadi ORON ==============================
============== address@hidden ============= ICQ: 7316619 ==============
The nice thing about egotists is that they don't talk about other people.
-- Lucille S. Harper
==================================
Swarm-Modelling is for discussion of Simulation and Modelling techniques
esp. using Swarm. For list administration needs (esp. [un]subscribing),
please send a message to <address@hidden> with "help" in the
body of the message.
==================================