[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Probes
From: |
Marcus G. Daniels |
Subject: |
Re: Probes |
Date: |
15 Mar 2001 10:29:21 -0800 |
User-agent: |
Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.4 |
>>>>> "FW" == Fred Wan <address@hidden> writes:
FW> The code fragment belows shows how a bugList is traversed to pick
FW> a bug (i.c., Bug #1), how it is tried to change its colour
FW> (doesn't work) and how MesageProbe is retrieved (with
FW> getProbeForMessage, which is a method of a SwarmObject!) to print
FW> out the X-position of the bug.
MessageProbes are working for me. (See example below.)
If you think there is a bug somehow, you'll need to write an example I
can compile and run, not a `blurb' with undefined degrees of
freedom...
import swarm.Globals;
import swarm.objectbase.SwarmObjectImpl;
import swarm.objectbase.MessageProbe;
import swarm.defobj.Zone;
public class TestMessageProbe extends SwarmObjectImpl {
public double getXPos ()
{
return 2.5;
}
static void main (String args[]) {
Globals.env.initSwarm ("TestMessageProbe", "address@hidden",
"0.0", args);
TestMessageProbe testMessageProbe =
new TestMessageProbe (Globals.env.globalZone);
testMessageProbe.test ();
}
TestMessageProbe (Zone aZone) {
super (aZone);
}
void test () {
MessageProbe messageProbe = getProbeForMessage ("getXPos");
System.out.println (messageProbe.doubleDynamicCallOn (this));
}
}
==================================
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.
- Probes, Fred Wan, 2001/03/06
- RE: Probes, Fred Wan, 2001/03/14
- Re: Probes, Marcus G. Daniels, 2001/03/14
- RE: Probes, Fred Wan, 2001/03/15
- Re: Probes,
Marcus G. Daniels <=
- RE: Probes, Fred Wan, 2001/03/16
- Re: Probes, Ralf Stephan, 2001/03/16
- Re: Probes, Marcus G. Daniels, 2001/03/16
- RE: Probes, Fred Wan, 2001/03/21
- Re: Probes, Marcus G. Daniels, 2001/03/21
- RE: Probes, Fred Wan, 2001/03/21
- Re: Probes, Paul E Johnson, 2001/03/10