swarm-modeling
[Top][All Lists]
Advanced

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

simpleSwarmBug 1 Question


From: Clive Gout
Subject: simpleSwarmBug 1 Question
Date: Thu, 18 Apr 2002 14:28:27 +0800 (WST)

Hi,

I will be using swarm for a project at uni so I thought I would run 
through the tutorials to get a grasp of it. I have hit a small snag trying 
to understand the buildActions function in the ModelSwarm.m

- buildActions 
{
  // Build a simple schedule to send a "step" message to 
  // the bug every time step

  modelSchedule = [Schedule createBegin: self];
  [modelSchedule setRepeatInterval: 1];
  modelSchedule = [modelSchedule createEnd];
  [modelSchedule at: 0 createActionTo: aBug  message: M(step)];
                                                      ^
  return self;
}

The problem I am having is that I'm not sure what the M(step) actually 
does. I know what step does, I kind of know what createActionTo does but I 
dont know why the M() is there.

If this has been covered earlier I'm sorry, I tried searching the 
archives but didnt find anything.

Thanks,
Clive



                  ==================================
   Swarm-Modelling is for discussion of Simulation and Modelling techniques
   esp. using 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]