GenericRandomWalker

open class GenericRandomWalker<T>(reaction: NodeReaction<T>, environment: Environment<T, Euclidean2DPosition>, randomGenerator: RandomGenerator, speed: Double, distanceDistribution: RealDistribution) : EuclideanConfigurableMoveNode<T, Euclidean2DPosition> (source)

Chooses random targets in a direction extracted from randomGenerator at a distance extracted from distanceDistribution. Moves the node towards the targets at the given constant speed. Changes target on collision.

Inheritors

Constructors

Link copied to clipboard
constructor(reaction: NodeReaction<T>, environment: Environment<T, Euclidean2DPosition>, randomGenerator: RandomGenerator, speed: Double, distanceDistribution: RealDistribution)

Properties

Link copied to clipboard
Link copied to clipboard
override val reaction: NodeReaction<T>
Link copied to clipboard

Functions

Link copied to clipboard
override fun cloneAction(newReaction: Reaction<T>): Action<T>
Link copied to clipboard
open override fun execute()
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String