Document: SCL: An Artificial Chemistry in Swarm
4 Getting SCL
3.3 Reactions
3.3.5 Absorption
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:
- If the primary L particle does not have an
absorbed link (i.e. it is not in the L form)
then the reaction terminates.
- A bernoulli random variable is evaluated with
probability parameter emissionProbability
(the rate parameter for the reaction). If this
evaluates as NO, the reaction terminates.
- A random neighbor is chosen from the default
neighborhood (neighborParticle). If this is
not a hole (H), the reaction
terminates.
- neighborParticle is replaced with an
S particle.
- The primary L 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.
4 Getting SCL
3.3 Reactions
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