GenericRandomWalker

open class GenericRandomWalker<T>(node: Node<T>, reaction: Reaction<T>, environment: Environment<T, Euclidean2DPosition>, randomGenerator: <Error class: unknown class>, speed: Double, distanceDistribution: <Error class: unknown class>) : EuclideanConfigurableMoveNode<T, Euclidean2DPosition>

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(node: Node<T>, reaction: Reaction<T>, environment: Environment<T, Euclidean2DPosition>, randomGenerator: <Error class: unknown class>, speed: Double, distanceDistribution: <Error class: unknown class>)

Functions

Link copied to clipboard
open override fun cloneAction(node: Node<T>, reaction: Reaction<T>): GenericRandomWalker<T>
Link copied to clipboard
open override fun execute()

Effectively executes this action.

Link copied to clipboard
override fun getContext(): Context
Link copied to clipboard
Link copied to clipboard
override fun getOutboundDependencies(): ListSet
Link copied to clipboard
open override fun toString(): String