Class AbstractTargetPositionPredictionAlgorithm

    • Field Detail

      • predictionDuration

        protected final double predictionDuration
        Duration of prediction.
    • Constructor Detail

      • AbstractTargetPositionPredictionAlgorithm

        public AbstractTargetPositionPredictionAlgorithm​(double predictionDuration)
        Constructor.
        Parameters:
        predictionDuration - the duration of prediction.
    • Method Detail

      • equals

        @Pure
        public boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • hashCode

        @Pure
        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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.