Lsa Count Neighbors Action
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
mol To Count
The IlsaMolecule instance you want to search in neighbor lsa space.
count Var
The String representing the name of the counting var. (to add to matches map)
rand
Random engine