Document: SCL: An Artificial Chemistry in Swarm
3.3.5 Absorption
3.3 Reactions
3.3.3 Bonding
Bond decay can happen either as a spontaneous reaction,
or as a forced reaction when an L is completing the
disintegration reaction. The spontaneous reaction is
initiated by a bond, and is implemented as follows:
- A bernoulli random variable is evaluated with
probability parameter bondDecayProbability
(the rate parameter for the reaction). If this
evaluates as NO, the reaction terminates.
- The bond decays (i.e. the two affected L
particles are told to remove the bond). This
completes the spontaneous bond decay reaction.
The forced bond decay reaction is initiated by one of
the bonded L particles, as it completes the
disintegration reaction. It is implemented as follows:
- The primary L particle tells the bond to
decay.
- The bond decays (i.e. the two affected L
particles are told to remove the bond). This
completes the forced bond decay reaction.
3.3.5 Absorption
3.3 Reactions
3.3.3 Bonding
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