LsaAllNeighborsAction
class LsaAllNeighborsAction(randomGenerator: RandomGenerator?, environment: Environment<List<ILsaMolecule>, *>, reaction: NodeReaction<List<ILsaMolecule>>, molecule: ILsaMolecule) : LsaRandomNeighborAction(source)
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
Functions
Link copied to clipboard
Link copied to clipboard
open override fun setExecutionContext(matches: MutableMap<HashString, ITreeNode<*>>?, nodes: MutableList<ILsaNode>?)
Sets the context in which this action will execute.