Messages from list : cormas@cirad.fr

Choose a topic among the following archives :

Re: question again on aggregates

New Message Reply Date view Thread view Subject view Author view

Subject: Re: question again on aggregates
From: Pierre Bommel (bommel@cirad.fr)
Date: Thu Dec 05 2002 - 15:56:58 CET

Hello Paolo,

> i have another question regarding aggregates. is
> there a way to partition each element of an aggregate
> to smaller aggregates? for example, i paritioned the
> environment accoridng to political boundaries. now
> within each political boundary, i want to aggregates
> the components acoording to an attribure, such as land
> cover. Is this possible? how can i do this?

Yes, it is possible.
The simplest way consists in building small aggregates verifying two
conditions. Example:
    self spaceModel setAggregates: Aggregate from: Cell verifying: [:c |
c policy = #xxx and:[c landCover = #yyy]]
or
    self spaceModel setAggregates: Aggregate from: Cell attribute:
#policy attribute: #landCover.

You can then create (if necessary) higher aggregates verifying two
conditions. Example:
    self spaceModel setAggregates: Aggregate from: Cell attribute:
#policy attribute: #landCover.
    self theAggregates do:[:ag| ag initNeighbourhood. ag init].
    self spaceModel setAggregates: Aggregate2 from: Aggregate verifying:
[:agg | agg policy = #xxx]

But this is just an example. We are writting a complete user-guide and a
tutorial describing all the methods of Cormas.
They should be available "very soon" ... ;o)
Best regards,

    Pierre

--
***********************************
  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