Class Nearest

  • All Implemented Interfaces:
    it.unibo.alchemist.model.cognitive.SteeringStrategy

    
    public final class Nearest<T extends Object>
    extends Filtered<T, Euclidean2DPosition>
                        

    Filtered strategy considering only the group steering action and the non-group steering action whose targets are nearest to the node's position. The two actions are combined using DistanceWeighted strategy.

    • 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
      • Methods inherited from class it.unibo.alchemist.model.cognitive.steering.Filtered

        computeNextPosition
      • Methods inherited from class it.unibo.alchemist.model.cognitive.SteeringStrategy

        computeTarget
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Nearest

        Nearest(Euclidean2DEnvironment<T> environment, Node<T> node)
        Parameters:
        environment -
        the environment in which the node moves.
        node -
        the owner of the steering action this strategy belongs to.
    • Method Detail