InteractWithOthers

class InteractWithOthers<T, P : Position<out P>?> : SpeedSelectionStrategy<T, P>

This strategy slows down nodes depending on how many "interacting" nodes are found in the surroundings. It is an attempt at modeling crowding slow-downs.

Parameters

<P>

position type

<T>

concentration type

Constructors

Link copied to clipboard
open fun InteractWithOthers(    environment: Environment<T, P>,     n: Node<T>,     reaction: Reaction<T>,     interactingMolecule: Molecule,     speed: Double,     radius: Double,     interaction: Double)

Functions

Link copied to clipboard
open fun cloneIfNeeded(destination: Node<T>, reaction: Reaction<T>): SpeedSelectionStrategy<T, P>
Link copied to clipboard
open fun getNodeMovementLength(target: P): Double