swarm-support
[Top][All Lists]
Advanced

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

Re: Probes in Java (subclass)


From: Marcus G. Daniels
Subject: Re: Probes in Java (subclass)
Date: 27 Jun 2001 08:06:12 -0600
User-agent: Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.7

>>>>> "MEB" == Marie-Edith Bissey <address@hidden> writes:

MEB> I cannot probe the IntelligentPlayer for the variables declared
MEB> only in Player (as public variables) and which are common to the
MEB> two types of players. 

Try something like this:

        VarProbe probeVariable (String name)
        {
            VarProbe varProbe = null;
            Class baseClass = getProbedClass ();

            do {
                varProbe =
                    Globals.env.probeLibrary.getProbeForVariable$inClass
                    (name, baseClass);
                baseClass = baseClass.getSuperclass ();
            } while (varProbe == null && baseClass != null);
            return varProbe;
        }

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