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 15:24:17 +0800 (WST)

Hi,

If you are getting this twice I'm sorry its my first post to the forum so 
i dont know whats going on :)

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]