swarm-support
[Top][All Lists]
Advanced

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

Need help/examples with enumerated lists


From: Paul E. Johnson
Subject: Need help/examples with enumerated lists
Date: Thu, 16 Jul 1998 13:30:06 -0500 (CDT)

I've been using regular lists, but now I have a need to use one
of the alternatives, such as set or indexed. The docs don't have enough
information for me to understand which I need and how to make use of
them. Perhaps I can explain.

I've got Recruiter agents that go around making offers, and when
an offer is accepted, a Citizen agent executes a method that puts its
name on the memberList of that Recruiter.  Each Recruiter generates
a list of citizens to contact each time period, but that list may
contain some of the names of the people who are already in memberList.

If I want to remove from the contactList all people who are already
in memberList, what do I do?

Or, what if I want to make sure that all people in memberList are also
in contactList every time, so the Recruiter touches base with new
prospects and each of the existing members every time.

Each citizen has a variable "idNumber" that can be used to differentiate
them. I just don't understand how to put it together.  The swarm examples 
in swarmapps,  did you ever notice, make no use of indexes for lists, much
less complicated ones.

If you have example code using these fancier lists, I'd be grateful.
I'm going to keep looking around in anarchy too.


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]