swarm-support
[Top][All Lists]
Advanced

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

RE: questions about using SWARM


From: Marshall, James A R
Subject: RE: questions about using SWARM
Date: Thu, 8 Aug 2002 10:46:09 +0100

To implement multi-dimensional arrays using Swarm collections, simply create
arrays of arrays.
Alternatively both Java and Objective C allow you to use primitive
multidimension arrays.
        James

-----Original Message-----
From: 9(LN [mailto:address@hidden
Sent: 08 August 2002 06:25
To: address@hidden
Subject: questions about using SWARM


Dear Sir/Madam,

Now I am using SWARM to simulate s multi-agent communication, I build Agent:
SwarmObject, the agent needs a matrix to store data, but I found that in
SWARM, there is no multi deminsion array, while using list is very
inconvient.what can I do to overcome it?
Besides, I build <id> agentlist to represent all agents in ModelSwarm, in
the
following process, I need to randomly select two agents to communicate,
could
I write these codes in ModelSwarm part like: 
      modelActions = [ActionGroup create: self];
     [modelActions createActionTo: agentList message: M(step)];

or   [modelActions createActionTo: self message: M(step)];
then,
      modelSchedule = [Schedule create: self setRepeatInterval: 1];
     [modelSchedule at: 0 createAction: modelActions];
here in the step method, could I use:
[self getAgentList] to get current agentlist and deal with it?
then I write step as a method of ModelSwarm. Is it applicable? Or could you
recommend me some better ways?
  
Finally, when compiling other porgrams, I encountered a "outofrange error",
but I cannot find where to check this,could you help me?

Thank you for help!

Yours sincerely
Gong Tao





--http://www.eyou.com
--IE???E???AAa*N?c?ODAIa  OiOoOE1/4?  OAE??EeC(c)  EOAu*?In
IoAc?ae?c...OUOEI?3/4!



                  ==================================
   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.

                  ==================================
   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]