Subject: RE: display id of agent in space
From: Nicolas (nicolas.becu@gmail.com)
Date: Tue Jun 12 2007 - 17:51:16 CEST
This is an extract of the Cormas method glossary which should be released
soon, and should answer your question
SpatialEntity display utilities (to be used by any spatial entity - cell,
aggregate or fragmented spatial entity)
SpatialEntity > Instance methods > protocol: display
displayId
Display on the spatial grid the id of the receiver. The id appears as a
string on top of the spatial entity.
Example: self theCells do:[:c | c displayed]
Kind regards
Nicolas
_____
From: owner-cormas@cirad.cirad.fr [mailto:owner-cormas@cirad.cirad.fr] On
Behalf Of Chau Duc Phu
Sent: mardi 12 juin 2007 12:05
To: cormas@cirad.fr
Cc: 'Chau Duc Phu'
Subject: 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