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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      RandomTarget<T> cloneIfNeeded(Node<T> destination, Reaction<T> reaction)
      • Methods inherited from class it.unibo.alchemist.model.movestrategies.ChangeTargetOnCollision

        getTarget
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait