Class RandomTarget

  • All Implemented Interfaces:
    it.unibo.alchemist.model.movestrategies.TargetSelectionStrategy , java.io.Serializable

    
    public final class RandomTarget<T extends Object>
    extends ChangeTargetOnCollision<T, Euclidean2DPosition>
                        

    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.