swarm-support
[Top][All Lists]
Advanced

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

Question about how to make EZGraph do what I want


From: pauljohn
Subject: Question about how to make EZGraph do what I want
Date: Fri, 21 Aug 1998 16:18:30 -0500 (CDT)

Hello, everybody.  


I have an EZGraph that collects information and plots a line for
each "recruiter" in the "recruiterList".  Each line shows the number
of members in that recruiter's membership (getMembershipLevel).  The
code is attached below.

The problem is that this code executes at time 0, and so when
recruiters are born and killed, they do not drop out or pop into
the graph.  Life would be nicer for me if they did.  

Got an idea what ought to be done?



    stabilityGraph = [EZGraph createBegin: [self getZone]];
    SET_WINDOW_GEOMETRY_RECORD_NAME (stabilityGraph);
    [stabilityGraph setTitle: "Membership"];
    [stabilityGraph setAxisLabelsX: "time" Y: "Total Membership"];
    stabilityGraph = [stabilityGraph createEnd];
 
    for(i=0; i < [[modelSwarm getRecruiterList] getCount]; i++){
      id aRecruiter;
      aRecruiter = [[modelSwarm getRecruiterList] atOffset: i];
    
      [stabilityGraph createSequence: "Membership"
                           withFeedFrom: aRecruiter 
                           andSelector: M(getMembershipLevel)];
    }
-- 
Paul E. Johnson                       email: address@hidden
Dept. of Political Science            http://lark.cc.ukans.edu/~pauljohn
University of Kansas                  Office: (913) 864-9086
Lawrence, Kansas 66045                FAX: (913) 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]