swarm-support
[Top][All Lists]
Advanced

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

Re: Probes


From: Marcus G. Daniels
Subject: Re: Probes
Date: 14 Mar 2001 09:50:39 -0800
User-agent: Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.4

>>>>> "FW" == Fred Wan <address@hidden> writes:

FW> I encountered two ways in which to make probes. One is to make an
FW> EmptyProbeMapImpl and add probes on demand

FW> The other way is to extend EmptyProbeMapImpl and add elements as
FW> is done in jheatbugs

FW> The latter seems a lot more complex to do. Is there any principled
FW> difference? 

Merely a question of terseness of setup vs. addition of entries...

FW> Just as in one of my previous questions I just want to have access
FW> to the data of one agent. As recommended I used
FW> Globals.env.createProbeDisplay (obj); to create a probe for the
FW> specific object (the agent). I actually don't know if this probe
FW> is connected to a ProbeMap (I didn't figure it out yet), so I
FW> don't know where I should obtain the probeMap from that is needed
FW> to call probeMap.getProbeForMessage (messageName). Maybe this can
FW> be clarified as well. In general, the class ProbeDisplay is used
FW> to display ProbeMaps, but in this case, to display the probemap of
FW> the agent I used a special makeProbeAtX$Y message to a
FW> Object2dDisplay. Where is the probeMap of this object?

For ProbeDisplays created in these ways (as opposed to manually, where
you could set one explicitly), ProbeMaps come from the ProbeLibrary,
which, unless a specific ProbeMap is registered by the user, will make
a basic ProbeMap with the immediate fields and methods.


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