swarm-support
[Top][All Lists]
Advanced

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

A detail about HeatbugModelSwarm.m code


From: CUVELIER Bruno - 00
Subject: A detail about HeatbugModelSwarm.m code
Date: Tue, 21 Jan 1997 17:16:00 +0100

Hi all,

The implementation of buildActions is:

-buildActions {
  [super buildActions];

  modelActions = [ActionGroup create: [self getZone]];
  [modelActions createActionTo:      heat        message: M(stepRule)];
  [modelActions createActionForEach: heatbugList message: M(step)];  
  [modelActions createActionTo:      heat        message: M(updateLattice)];

  // THERE IS NO createEnd for modelActions !
  // I think, it should have an instruction :
  // modelActions = [ActionGroup createEnd];
  // The compilation produce no error or warning !
  // Without createEnd message what is the state of the object modelActions?

  modelSchedule = [Schedule createBegin: [self getZone]];
  [modelSchedule setRepeatInterval: 1];
  modelSchedule = [modelSchedule createEnd];
  [modelSchedule at: 0 createAction: modelActions];

  return self;
}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]