[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Swarm-Modelling] How to drop a agent?
From: |
Paul Johnson |
Subject: |
Re: [Swarm-Modelling] How to drop a agent? |
Date: |
Tue, 29 Mar 2005 11:16:38 -0600 |
User-agent: |
Mozilla Thunderbird 1.0.2-1.3.2 (X11/20050324) |
You have to be careful here because seg faults result from dropping
things before other objects refer to them.
In the swarm sugar scape, there is an example of how agents can be
safely killed off. It is also discussed in arborgames. If you get the
newest swarmapps I recently announced, you can study up
I have a copy in http://lark.cc.ku.edu/~pauljohn/Swarm
pj
James Liu wrote:
> Dear All:
>
> I want to drop a agent A1 in Swarm created from the class A when A1 dies,that
> is,A1 have no
> food to eat.The "Swarm User Guide" does not say clearly about this.I used
> the "drop" mothed as follows:
> [[self getZone] drop]
> But the application stoped with the error: Segmentation fault <core
> dumped>.What is the
> problem? How to drop a agent directly?
>
> Thanks a ton!
>
> Best regards,
>
> James
>
> address@hidden
> 2005-03-29
>
> _______________________________________________
> Modelling mailing list
> address@hidden
> http://www.swarm.org/mailman/listinfo/modelling
--
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