Interface SteeringActionWithTarget
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.Action
,it.unibo.alchemist.model.cognitive.SteeringAction
,java.io.Serializable
public interface SteeringActionWithTarget<T extends Object, P extends Position<P>, Vector<P>> implements SteeringAction<T, P>
A SteeringAction with a defined target.
-
-
Method Summary
Modifier and Type Method Description abstract P
target()
The position the owner of this action moves towards, in absolute coordinates. Double
targetDistanceTo(Node<T> node, Environment<T, P> environment)
Computes the distance between this action's target and the given node. -
Methods inherited from class it.unibo.alchemist.model.cognitive.SteeringAction
nextPosition
-
Methods inherited from class it.unibo.alchemist.model.Action
cloneAction, execute, getContext, getOutboundDependencies
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
target
abstract P target()
The position the owner of this action moves towards, in absolute coordinates.
-
targetDistanceTo
Double targetDistanceTo(Node<T> node, Environment<T, P> environment)
Computes the distance between this action's target and the given node.
-
-
-
-