Class DistanceWeighted

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

    
    public final class DistanceWeighted<T extends Object>
    extends Weighted<T>
                        

    Weighted strategy where the weight of each steering action is the inverse of the node's distance from the action's target (the closer the target, the more important the action). defaultWeight is used for actions without a target.

    • 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.Weighted

        computeNextPosition, computeTarget
      • Methods inherited from class java.lang.Object

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

      • DistanceWeighted

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