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.
-
-
Constructor Summary
Constructors Constructor Description DistanceWeighted(Euclidean2DEnvironment<T> environment, Node<T> node, Double defaultWeight)
-
Method Summary
Modifier and Type Method Description -
-
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.
-
-
-
-