swarm-support
[Top][All Lists]
Advanced

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

Array in ProbeMap


From: Riccardo Boero
Subject: Array in ProbeMap
Date: Thu, 20 Jul 2000 14:53:40 +0200

Do you know if there is a way to put elements of an integer array
directly in a ModelSwarm customized probeMap?
I tried with a simple solution, using standard java method to put
variables in probe maps, but it doesn't work, it doesn't understand
nameArray[x] as the name of variable...
My try:
...
            private void addVar (String name) {
                addProbe (probeVariable (name));
            }

            public Gt2ModelProbeMap (Zone _aZone, Class aClass) {
                super (_aZone, aClass);
                addVar ("numPlayers");
                ...
                addVar ("payoffArray[23]");
            }
...

Thanks.

Riccardo Boero
address@hidden

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