swarm-support
[Top][All Lists]
Advanced

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

Re: Array in ProbeMap


From: Paul Johnson
Subject: Re: Array in ProbeMap
Date: Thu, 20 Jul 2000 10:45:31 -0500

"Marcus G. Daniels" wrote:
> 
> >>>>> "you" == Riccardo Boero <address@hidden> writes:
> 
> you> Do you know if there is a way to put elements of an integer array
> you> directly in a ModelSwarm customized probeMap?
> 
> Arrays are not supported.


WHy would it not work to create a method like this in the model swarm

-(int) getArrayMember: (int) x
{
        return thatarray[x];
}

and then use a message probe to interact with it and get the value you
want?
-- 
Paul E. Johnson                       email: address@hidden
Dept. of Political Science            http://lark.cc.ukans.edu/~pauljohn
University of Kansas                  Office: (785) 864-9086
Lawrence, Kansas 66045                FAX: (785) 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]