next up previous
Next: Diagnosing a Stuck Growing Up: Example: A Growing Point Previous: Example: A Growing Point

Monitoring the Progress of a Growing Point

In this case, since processors which comprise the structure have all been labeled with a material name, it is easy to signal members of the structure. Furthermore, due to the nature of the propagation protocol, the chances are good that just such a labelled processor is within the local communication radius of the stuck growing point.

Therefore, we rewrite the growing point definition to include a monitor.

(define-growing-point (A-to-B-segment)
  (material A-material)
  (size 0)
  (tropism (ortho+ B-pheromone))
  (for-each-step
   (when ((sensing? B-material)
          (terminate))
         ((stuck?)
          (secrete 1 (A-is-stuck-pheremone))
         (default
          (propagate)))))



Jeremy Zucker
2000-06-10