Generic Random Walker
open class GenericRandomWalker<T>(node: Node<T>, reaction: Reaction<T>, environment: Environment<T, Euclidean2DPosition>, randomGenerator: ERROR CLASS: Symbol not found for RandomGenerator, speed: Double, distanceDistribution: ERROR CLASS: Symbol not found for RealDistribution) : 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: Symbol not found for RandomGenerator, speed: Double, distanceDistribution: ERROR CLASS: Symbol not found for RealDistribution)
Properties
Link copied to clipboard
Link copied to clipboard
override val outboundDependencies: @EnhancedNullability org/danilopianini/util/ListSet<out it/unibo/alchemist/model/Dependency!>
Functions
Link copied to clipboard
This method allows to clone this action on a new node. It may result useful to support runtime creation of nodes with the same reaction programming, e.g. for morphogenesis.
Link copied to clipboard
Detects if the move is in absolute or relative coordinates, then calls the correct method on the Environment.
Link copied to clipboard