Interact With Others
constructor(environment: Environment<T, P>, n: Node<T>, reaction: Reaction<T>, interactingMolecule: Molecule, speed: Double, radius: Double, interaction: Double)
Parameters
environment
the environment
n
the node
reaction
the reaction
interacting Molecule
the molecule that identifies an interacting node
speed
the normal speed of the node
radius
the radius where to search for interacting nodes
interaction
the interaction factor. This will be multiplied by a crowd factor dynamically computed, and the speed will be divided by the number obtained