Package it.unibo.alchemist.model.implementations.movestrategies
Types
Link copied to clipboard
class RandomTarget<T>( environment: Environment<T, Euclidean2DPosition>, getCurrentPosition: () -> Euclidean2DPosition, makePosition: (Double, Double) -> Euclidean2DPosition, directionRng: RandomGenerator, distanceDistribution: RealDistribution) : ChangeTargetOnCollision<T, Euclidean2DPosition>
Content copied to clipboard
Selects a target based on a random direction extracted from directionRng, and a random distance extracted from distanceDistribution. getCurrentPosition should return the current position of the object to move. T is the type of the concentration of the node.