Document: SCL: An Artificial Chemistry in Swarm

next 4 Getting SCL
up 3.3 Reactions
gif 3.3.5 Absorption

3.3.6 Emission

Emission is initiated by a primary L particle. It can happen either as a spontaneous reaction, or as a forced reaction when an L is in the disintegrating state. The spontaneous reaction is implemented as follows:

  1. If the primary L particle does not have an absorbed link (i.e. it is not in the L tex2html_wrap_inline1231 form) then the reaction terminates.
  2. A bernoulli random variable is evaluated with probability parameter emissionProbability (the rate parameter for the reaction). If this evaluates as NO, the reaction terminates.

  3. A random neighbor is chosen from the default neighborhood (neighborParticle). If this is not a hole (H), the reaction terminates.

  4. neighborParticle is replaced with an S particle.
  5. The primary L tex2html_wrap_inline1231 particle is marked as no longer having an absorbed substrate--i.e. it reverts to the L form. That completes the absorption reaction.

In the case where the emission reaction is forced, as a side effect of the disintegration reaction, the implementation is the same as this spontaneous reaction except that steps 1 and 2 above are bypassed.



next 4 Getting SCL
up 3.3 Reactions
gif 3.3.5 Absorption

Document: SCL: An Artificial Chemistry in Swarm

Copyright © 1997 All Rights Reserved.
Timestamp: Tue Dec 31 19:40:38 GMT 1996

mcmullin@eeng.dcu.ie