swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating output files in java


From: Marcus G. Daniels
Subject: Re: Creating output files in java
Date: 27 Jul 2001 09:52:20 -0600
User-agent: Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.7

>>>>> "IG" == Isis GIRALDO <address@hidden> writes:

IG> I'm usig swarm with java and need to create an output
IG> file with data from the agents. Initially I tryed to use the
IG> EZGraph to create the sequence but it only allows to write a value
IG> on the file by time step. 

IG> I need my file to have some information of every agent for every
IG> step in the simulation. 

It's true that EZGraph works with data streams of a single variable.
However, these streams can be aggregated together in one place (the Graph).

To add a sequence to a graph, a name, a target object and a message must
be specified (see createSequence$withFeedFrom$andSelector).  The EZGraph
simply sends the target object (a.k.a. the feed object), the message
that is specified (a.k.a. the Selector), anticipating that the message
will return a double.

If there are different outputs that are logically separate or
secondary, there's the option of having separate EZGraphs.  The graphs
could be created at the request of the user via a MessageProbe (on a
ProbeDisplay), for example.

When an EZGraph is setup to write to HDF5, the HDF5 files can be
loaded into R (a free statistical package) and assembled in to R data
frames.  The data frames can then be manipulated by row or by column.
Search the Swarm mailing list archives for details.  It's easy given
some basic working knowledge of R.


                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]