Messages from list : cormas@cirad.fr

Choose a topic among the following archives :

RE : RE : display id of agent in space

New Message Reply Date view Thread view Subject view Author view

Subject: RE : RE : display id of agent in space
From: Bousquet (bousquet@cirad.fr)
Date: Tue Jun 12 2007 - 18:09:26 CEST

I understand that you want to see the id of the agent in the communication
interface, is not it? If so, I am surprised because the id of the agent is
automatically displayed close to the agent. To have the agents in this wndow
you need to have them also in the spatial interface and a point of view be
selected

 

-----Message d'origine-----
De : owner-cormas@cirad.cirad.fr [mailto:owner-cormas@cirad.cirad.fr] De la
part de christophe LE PAGE
Envoyé : mardi 12 juin 2007 17:49
À : 'Chau Duc Phu'; cormas@cirad.fr
Objet : RE : display id of agent in space

 

Bonjour !

 

Refine SpatialEntity>>displayOn: method in the specific elementary spatial
entity class of your model:

 

displayOn: aGC

      | label |

      super displayOn: aGC.

      label := String new: 0.

      self allOccupants

            do: [:anOccupant | label := label , ' ' , anOccupant id
printString].

      self displayString: label

 

If a cell contains several agents, it may look a bit messy…

Hope this helps anyway.

 

Clp

 

-----Message d'origine-----
De : owner-cormas@cirad.cirad.fr [mailto:owner-cormas@cirad.cirad.fr] De la
part de Chau Duc Phu
Envoyé : mardi 12 juin 2007 17:05
À : cormas@cirad.fr
Cc : 'Chau Duc Phu'
Objet : display id of agent in space

 

Hi all!

I have a question:

I want to display identification number (id) of each social agent in
simulation space to be easy in observing them in “Communications’Observer”
but I don’t know how to do it.

Could you give me the detailed guide of this problem?

Great thanks for your help!

-----------------------

Chau Duc Phu

Etudiant P12 - Institut de la Francophonie pour l'Informatique (IFI)

Ruelle 42, Ta Quang Buu, Hanoi, Vietnam

Tel : 0905.630.631

New Message Reply Date view Thread view Subject view Author view
 

Back to home