Document: SCL: An Artificial Chemistry in Swarm
3.3.2 Disintegration
3.3 Reactions
3.3 Reactions
Production is initiated by a primary K particle,
and is implemented as follows:
- A bernoulli random variable is evaluated with
probability parameter productionProbability
(the rate parameter for the reaction). If this
evaluates as NO, the reaction terminates.
- A random neighbor is chosen from the default
neighborhood (neighborParticle0). If this is
not an S particle, the reaction is
terminated.
- There will be exactly two cells in the
default neighborhood which are immediately adjacent
to both the primary K particle and the
neighborParticle0 S particle. One of
these is chosen at random (neigborParticle1).
If this does not contain an S particle, the
reaction is terminated.
- neighborParticle0 is replaced with an
H; neighborParticle1 is replaced with an
L. That completes the reaction.
3.3.2 Disintegration
3.3 Reactions
3.3 Reactions
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