Messages from list : cormas@cirad.fr

Choose a topic among the following archives :

RE : how to agregate agregated spatial entities in Cormas ?

New Message Reply Date view Thread view Subject view Author view

Subject: RE : how to agregate agregated spatial entities in Cormas ?
From: Christophe Le Page (christophe.l@chula.ac.th)
Date: Fri May 25 2007 - 12:40:03 CEST

 

Salut Christophe,

 

You have guessed correctly: Cormas is lazy and does not compute the
neighbourhood of newly created aggregates…

So when you need to manipulate neighbours of aggregates (like when trying to
aggregate them), you have first to request these aggregates to detect their
neighbours.

In your case, right after the first aggregation step, add this instruction:

 

self theSE1s do: [:aCE1 | a CE1 initNeighbourhood].

 

A+,

clp

 

 

-----Message d'origine-----
De : owner-cormas@cirad.cirad.fr [mailto:owner-cormas@cirad.cirad.fr] De la
part de Christophe Simon
Envoyé : vendredi 25 mai 2007 16:20
À : cormas@cirad.fr
Objet : how to agregate agregated spatial entities in Cormas ?

 

Hi,

 

Little problem with Cormas:

I'm building a MAS model for INRA Toulouse, and I would like to build
agregated spatial entities (let's call them SE2) from spatial entities
(let's call them SE1) agregated from the Cell class:

 

(1) first agregation step:

self spaceModel

setAggregates: SE1 from: Cell attribute: attributeName1

 

(2) second agrgation step:

self spaceModel

setAggregates: SE2 from: SE1 attribute: attributeName2

 

When doing so, the first step is working but Cormas seems not able to manage
the second step and sends me an error message. When looking at this message,
Cormas tries to find the "neighbourhood" (automatic attribut of a spatial
entity) of SE1 for agregation process and does not find it because its value
is "nil". So it is like the method (which is inside Kernel ?) for giving a
value to "neighbourhood" works automatically for the Cell class but not for
other classes.

 

Somebody has maybe already encountered this problem and could inform me how
to proceed ?!

Thanks in advance

 

Christophe Simon

 

 

  _____

Ne gardez plus qu'une seule adresse mail ! Copiez vos mails
<http://www.trueswitch.com/yahoo-fr/> vers Yahoo! Mail

New Message Reply Date view Thread view Subject view Author view
 

Back to home