[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
EmptyProbeMapImpl object
From: |
Olivier Jauze |
Subject: |
EmptyProbeMapImpl object |
Date: |
Tue, 03 Jul 2001 11:25:33 +0200 |
Hi,
like in the mousetrap exemple, I have tried to create and customize an
EmptyProbeMap.
I would like to update this probe after I press on the start button.
My aim is to visualize class' attributs during the simulation then I will
know how this attributes will evolve in time.
How can I do that ? Is it possible ?
Thanks in advance.
Here it is my code for the EmptyProbeMap:
class ModelSwarmProtoProbeMap extends EmptyProbeMapImpl
{
private VarProbe probeVariable (String name)
{
return Globals.env.probeLibrary.getProbeForVariable$inClass
( name, ModelSwarmProto.this.getClass () );
}
private void add (String name)
{
addProbe (probeVariable (name));
}
public ModelSwarmProtoProbeMap (Zone _aZone, Class aClass)
{
super (_aZone, aClass);
add ("nbSimu");
add ("optionGenisse");
add("essai");
}
}
Olivier JAUZE
INRA unité URH équipe SP
Centre de Theix
==================================
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.
Re: Q: problem with schedulling, Marcus G. Daniels, 2001/07/02