swarm-support
[Top][All Lists]
Advanced

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

question about activateIn:


From: Paul Johnson
Subject: question about activateIn:
Date: Fri, 28 May 1999 17:36:45 -0500

I'm trying to work on more swarm guide material and find myself stumped
on a couple of things.  The help I got on ProbeMap was so great
yesterday I'm hitting you with this today.

>From HeatbugObserverSwarm, here is the method I'm curious about.


- activateIn:  swarmContext
{
  // First, activate ourselves (just pass along the context).
  [super activateIn: swarmContext];
  [heatbugModelSwarm activateIn: self];
  [displaySchedule activateIn: self];
    return [self getActivity];
}

1.  I don't know what to say about the [super activateIn: swarmContext]
command.   I've seen the tutorial material on it, of course, but it
still is difficult to explain why the super is called to do anything
here.  What would you say about it.  

2.  I am at a loss to understand why all these swarm models have return
[self getActivity].  There's no receiver doing anything with the
activity it gets. The model compiles and runs fine with return self.
What's up with that?

3.  Also, would anybody care to put some words down on what comes back
when you tell something to getActivity?

-- 
Paul E. Johnson                       email: address@hidden
Dept. of Political Science            http://lark.cc.ukans.edu/~pauljohn
University of Kansas                  Office: (785) 864-9086
Lawrence, Kansas 66045                FAX: (785) 864-5700

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