swarm-support
[Top][All Lists]
Advanced

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

RE: Probes


From: Fred Wan
Subject: RE: Probes
Date: Fri, 9 Mar 2001 15:57:03 +0100

Hi,

In the Swarm user guide by Paul Johnson the following passage can be found:

There are two main uses for probes: they can be fed into data-collection
objects and serve as interfaces to the
objects about which data is being collected (thus keeping the
data-collection objects as general as possible) -
the Averager class, for example, directly subclasses MessageProbe. Or, they
can be used in order to
generate a GUI to the individual objects in the simulation (the more common
usage).


I did not notice the first way in which probes can be used in the examples
(but perhaps I overlooked it). In jheatbugs something like this is done with
EZGraphImpl. The average unhappiness is fed into a file instead of into a
display object. How can this best be done with output from probes, i.e.,
instead of feeding them into display objects, feeding them into other
(data-collection) objects or files? The advantage of probes is, that the
instance variables can directly be accessed, i.e., without intervenience of
an accessor (although that isn't exactly exemplary OOP practice).

Thanks,

Fred Wan.


                  ==================================
   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]