LsaCountNeighborsAction

constructor(environment: Environment<List<ILsaMolecule>, out Any>, node: ILsaNode, molToCount: ILsaMolecule, countVar: HashString, rand: RandomGenerator)
constructor(environment: Environment<List<ILsaMolecule>, out Any>, node: ILsaNode, molToCount: ILsaMolecule, countVar: String, rand: RandomGenerator)

Builds a new action that counts neighbors which contain in their lsaSpace an lsaMolecule matching mol. The effect of this Action is to add to the matches list the variable countVar. The execution has no effect on the set of influenced molecules for the reaction.

Parameters

environment

The environment to use

node

The source node

molToCount

The IlsaMolecule instance you want to search in neighbor lsa space.

countVar

The String representing the name of the counting var. (to add to matches map)

rand

Random engine