RandomTarget
class RandomTarget<T>(environment: Environment<T, Euclidean2DPosition>, node: Node<T>, directionRng: RandomGenerator, distanceDistribution: RealDistribution) : ChangeTargetOnCollision<T, Euclidean2DPosition>
Selects a target for node based on a random direction extracted from directionRng, and a random distance extracted from distanceDistribution, stopping where environment stops node. T is the type of the concentration of the node.
Constructors
Link copied to clipboard
constructor(environment: Environment<T, Euclidean2DPosition>, node: Node<T>, directionRng: RandomGenerator, distanceDistribution: RealDistribution)
Properties
Link copied to clipboard
The next target where the Node is directed.
Functions
Link copied to clipboard
Clones this strategy, if needed, for the destination node and its reaction. Returns a copy of the strategy if the strategy is stateful, and this object otherwise: the default implementation assumes a stateless strategy.