LsaAllNeighborsAction

Adds the LSA molecule to all the valid neighbors. The molecule can be different from a neighbor to the other, because some special variables (e.g., #D) are specific for each node: N molecules are instanced if there are N neighbors. The randomGenerator is unused, and can be null.

Constructors

Link copied to clipboard
constructor(randomGenerator: RandomGenerator?, environment: Environment<List<ILsaMolecule>, *>, reaction: NodeReaction<List<ILsaMolecule>>, molecule: ILsaMolecule)

Properties

Link copied to clipboard

The node hosting this action, as an ILsaNode.

Link copied to clipboard

The modified molecule.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
override fun cloneAction(newReaction: Reaction<List<ILsaMolecule>>): Action<List<ILsaMolecule>>
Link copied to clipboard
open override fun execute()
Link copied to clipboard
open override fun setExecutionContext(matches: MutableMap<HashString, ITreeNode<*>>?, nodes: MutableList<ILsaNode>?)

Sets the context in which this action will execute.

Link copied to clipboard
open override fun toString(): String