Messages from list : cormas@cirad.fr

Choose a topic among the following archives :

Re: Envoie de message avec Cormas

New Message Reply Date view Thread view Subject view Author view

Subject: Re: Envoie de message avec Cormas
From: Pierre Bommel (bommel@cirad.fr)
Date: Fri Apr 15 2005 - 16:54:16 CEST

Bonjour Mahamadou,

On Cormas, the exchange of messages is not based on thread.
The procedure is less sophisticated than in Madkit where you just need
an address ('role'+'group') to send a Msg.
In Madkit you don't need a reference on the receiver and it can even be
located on another computer.
On Cormas, if you need a real msg (kind of e-mail), your agent may use a
mailBox and send some instances of Msg via a Channel.
For that, it needs a reference on the receiver and it can send its msg
synchronously or asynchronously.

Ex:
    m := PR_Message new.
    m symbol: #proposal;
    sender: self;
    receiver: aClient.
   self sendMessageAsynchronously: m

When you send a msg Asynchronously, it is immediately delivered to the
mailbox of the receiver.
When you send a msg Synchronously, it is stored by the Channel and will
be delivered at the end of the step into the mailbox of the receivers.
Hope it helps...

    Pierre

PS: J'ai vu que tu avais même envoyé ton msg sur le forum Squeak ! Si tu
veux vraiment utiliser les threads, regardes la classe
ProcessorScheduler et le guide AppDevGuide.pdf au chapitre 12 "Process
Control", page 275... bon courage !

BELEM Mahamadou a écrit :

> Bonjour J'ai quelques soucis avec Cormas. En fait, je suis un
> étudiant, je fais actuellement un stage sur la simulation
> multi-agents. Dans un SMA, les agents interagissent pas envoie de
> messages. Dans certains systèmes comme Madkit (je ne fais pas une
> comparaison), lorsqu'un agent envoie un message, c'est le système qui
> le distribue automatiquement aux agents concernés. J'aimerais savoir
> si en Cormas, cet aspect est pris en compte. ou c'est le programmeur
> qui gère la distribution des messages en plus de l'envoie et du
> traitement des messages. Bien à vous BELEM Mahamadou
> -----------------------------------------------------------------------
> Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour
> vos mails !
> Créez votre Yahoo! Mail

--
***********************************
  Pierre Bommel
  CIRAD TA 60/15
  73, rue Jean-François Breton
  34398 Montpellier cedex 5 France
  Phone: +33 (0)4 67 59 38 53
  Fax: +33 (0)4 67 59 38 27
  http://cormas.cirad.fr
***********************************

New Message Reply Date view Thread view Subject view Author view
 

Back to home