Subject: RE: questions about space
From: Francois Bousquet (f.bousquet@cgiar.org)
Date: Mon Nov 17 2003 - 05:06:55 CET
In your init mlethod you can refer to the following method
initializeRegularX: lines Y: columns shape: shapeSymbol nbNeighbours:
nbSymbol boundaries: bSymbol delimiter: aBoolean
"Create a grid of regular cells.
lines = number of lines. columns = number of columns.
shapeSymbol =<Symbol> (#squared , )
nbSymbol =<Symbol> (#four, #six or #eight)
bSymbol = <Symbol> (#toroidal or #closed)
aBoolean = <Boolean> .
ex, from CormasModel:
self spaceModel
initializeRegularX: 101 Y: 101 shape: #squared nbNeighbours: #eight
boundaries: #toroidal delimiter: false."
abiyt aggregates if you just want to visualize them, maybe you should have
only one class Aggergate and define a point o view on it depending on the
type of components.
Cheers
-----Message d'origine-----
De : owner-cormas@cirad.fr [mailto:owner-cormas@cirad.fr]De la part de
ABRAMI Géraldine
Envoyé : jeudi 13 novembre 2003 17:08
À : cormas@cirad.fr
Objet : questions about space
Hi,
I have two questions about the way of using space abilities of Cormas :
- is it possible to set programatically the size of a grid?
- about the way of using aggregates : is it necessary to define different
classes of aggregates for aggregates representing different things? (eg my
cells may be either water, eiher plot; then my aggregates may be either
Rivers (sets of water cells), either farms (sets of plots) - they dont'
have specific behaviour, I just use then for visualisation purposes)
Thanks
Geraldine
----------
Géraldine Abrami
Doctorante
CEMAGREF-IRMO
361, rue J.F. Breton
B.P. 5095
34033 MONTPELLIER Cedex 1
tel : +33 (0)4 67 04 63 54
email : abrami@montpellier.cemagref.fr
--- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.532 / Virus Database: 326 - Release Date: 27/10/03--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.532 / Virus Database: 326 - Release Date: 27/10/03