[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Lists
From: |
donalson |
Subject: |
Lists |
Date: |
Sun, 19 Sep 1999 17:05:32 -0700 |
Marcus,
Here is a theoretical question that should not need code (I hope).
In a simple statement, does an agent need a member_t for each list
instance to which it is attached and not just each listType?
Alternately, one listType for each list instance. I think I now realize
that this statement is true.
For example:
Say I create an agent of type Agent1. Part of Agent1's definition is a
list of other Agent1's in its immediate vinicity, call it "agent1List".
Now set member_t set to "agent1ListMember". Now I create say 200
instances of type Agent1. Each one gets an X,Y coordinate and then each
agent1 instance records all other agents within a certain distance into
its own list. This is a problem because "member_t agent1ListMember" is
being reused in each instance of agent1List into which a particular
instance of Agent1 gets inserted. This overwrites the previous list
link and screws up any list instance into which the agent1 instance has
previously been inserted.
Yea or Nay?
Cheers,
D3
--
*********************************************************************
* Doug Donalson Office: (805) 893-2962
* Ecology, Evolution, Home: (805) 961-4447
* and Marine Biology email address@hidden
* UC Santa Barbara
* Santa Barbara Ca. 93106
*********************************************************************
*
* The most exciting phrase to hear in science, the one that
* heralds new discoveries, is not "EUREKA" (I have found it) but
* "That's funny ...?"
*
* Isaac Asimov
*
*********************************************************************
==================================
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.