Class AbstractTargetPositionPredictionAlgorithm
- java.lang.Object
-
- org.arakhne.afc.agentmotion.common.AbstractTargetPositionPredictionAlgorithm
-
- All Implemented Interfaces:
Serializable
,Cloneable
- Direct Known Subclasses:
EvadingAlgorithm
,PursuingAlgorithm
public abstract class AbstractTargetPositionPredictionAlgorithm extends Object implements Serializable, Cloneable
Algorithm that is providing a simple target position prediction.- Since:
- 14.0
- Version:
- 17.0 2020-01-04 14:41:51
- Author:
- Stéphane GALLAND
- See Also:
- Serialized Form
- Maven Group Id:
- org.arakhne.afc.advanced
- Maven Artifact Id:
- agentmotion
-
-
Field Summary
Fields Modifier and Type Field Description protected double
predictionDuration
Duration of prediction.
-
Constructor Summary
Constructors Constructor Description AbstractTargetPositionPredictionAlgorithm(double predictionDuration)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractTargetPositionPredictionAlgorithm
clone()
boolean
equals(Object obj)
int
hashCode()
Point2D<?,?>
predictTargetPosition(Point2D<?,?> targetPosition, Vector2D<?,?> targetLinearMotion)
Predict the next position of the target.
-
-
-
Method Detail
-
clone
@Pure public AbstractTargetPositionPredictionAlgorithm clone()
-
predictTargetPosition
@Pure public Point2D<?,?> predictTargetPosition(Point2D<?,?> targetPosition, Vector2D<?,?> targetLinearMotion)
Predict the next position of the target.- Parameters:
targetPosition
- is the position of the target.targetLinearMotion
- is the linear motion of the target.- Returns:
- the predicted position.
-
-