Constant Distance Random Walk
class ConstantDistanceRandomWalk<T>(node: Node<T>, reaction: Reaction<T>, environment: Environment<T, Euclidean2DPosition>, randomGenerator: RandomGenerator, distance: Double, speed: Double) : GenericRandomWalker<T>
Content copied to clipboard
Moves for distance toward a uniformly random chosen direction at a constant speed, then changes direction and walks another distance, and so on.
Automatically changes direction on impact with obstacles if the environment supports them.
Parameters
environment
environment containing the node
node
the node to move
reaction
the reaction containing this action
random Generator
random number generator to use for the decisions
distance
the distance to travel before picking another one
speed
the speed
Constructors
Link copied to clipboard
fun <T> ConstantDistanceRandomWalk(node: Node<T>, reaction: Reaction<T>, environment: Environment<T, Euclidean2DPosition>, randomGenerator: RandomGenerator, distance: Double, speed: Double)
Content copied to clipboard
Functions
Link copied to clipboard
open override fun cloneAction(node: Node<T>, reaction: Reaction<T>): ConstantDistanceRandomWalk<T>
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getSpeedSelectionStrategy(): SpeedSelectionStrategy<T, Euclidean2DPosition>
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getTargetSelectionStrategy(): TargetSelectionStrategy<T, Euclidean2DPosition>
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard