[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Swarm-Support] (no subject)
From: |
Paul Johnson |
Subject: |
Re: [Swarm-Support] (no subject) |
Date: |
Tue, 13 Dec 2005 19:34:39 -0600 |
User-agent: |
Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) |
mariem siala wrote:
Thank you for a response. I want an example in Objective-C .
----- Original Message -----
Did you consult the collection of examples at
http://www.ku.edu/~pauljohn/SwarmFaq/WorkingExampleCode/objc/
I think if you want examples, that is the place to start. Pick 1 and
edit it to try to do what you want. If you can't do it, then post the
example here with your question about what to do.
There is really absolutely no trouble in having agents create more
instances. Personally, if I were you, I'd write the simulation so the
Model level does the actual work of creating agents and maintaining
records on them. You only have to have the other classes ask the Model
for another instance whenever they want one.
pj
--
Paul E. Johnson email: address@hidden
Dept. of Political Science http://lark.cc.ku.edu/~pauljohn
1541 Lilac Lane, Rm 504
University of Kansas Office: (785) 864-9086
Lawrence, Kansas 66044-3177 FAX: (785) 864-5700