Home Segments Index Top Previous Next

517: Mainline

Of course, to simulate the events that occur up to a specified month, you need a method that sends step messages until the next scheduled delivery month is later than the current month. Accordingly, you define the tickTo: message:

RabbitApplication method definition • instance 
tickTo: limit 
  [rabbits first deliveryMonth <= limit]  
    whileTrue: [self step].