Messages from list : cormas@cirad.fr

Choose a topic among the following archives :

Re: local charts

New Message Reply Date view Thread view Subject view Author view

Subject: Re: local charts
From: Pierre Bommel (bommel@cirad.fr)
Date: Wed Jan 08 2003 - 14:23:16 CET

Hello Stan,

If you choose to save the probe's data as Ascii files or Excel sheets,
Cormas will only save the global probes.
If you want to save also the instance's information, you should use data
base format (for example, Access). The data are saved into the "LocalProbes"
table. This is explained in the Tutorial2.PDF (Chapter 10. Analysing the
model). You can find it here :
http://cormas.cirad.fr/pdf/CormasTutorial2.pdf
Nevertheless, if you really want to save local probes as ASCII files or
Excel sheets, you (or we...) have to write the methods. Something like (in
your model class) :

saveLocalData: t
 | aCollection |
 aCollection := OrderedCollection new.
 aCollection
  add: (self simManager simNumero printString);
  add: t printString.
 Forager activeProbes "Forager is the name of the class I want to inspect"
  do: [:probe | self theForagers do:[:agent | aCollection add: (agent
perform: probe)]].
 self
    updateFullPathFile: myFilename
    dataCollection: aCollection
    separator: ';'

    Pierre

PS: pis aussi bonneannéebonnesantépistoutpleindchoses

Stanislas Boissau a écrit :

> Hi,
> is there a way to export local charts in Cormas 2003? Until now, I could
> only export global charts.
> Thanks in advance for your help
> Stan

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