Class FieldRelativeDistanceDetector<T extends CalculusFieldElement<T>>

    • Constructor Detail

      • FieldRelativeDistanceDetector

        public FieldRelativeDistanceDetector​(FieldPVCoordinatesProvider<T> secondaryPVProvider,
                                             T distanceThreshold)
        Constructor with default values.

        By default, the implemented behavior is to stop propagation at detection.

        Parameters:
        secondaryPVProvider - PVCoordinates provider of the other object defining relative distance.
        distanceThreshold - Relative distance threshold for event detection
      • FieldRelativeDistanceDetector

        protected FieldRelativeDistanceDetector​(FieldEventDetectionSettings<T> detectionSettings,
                                                FieldEventHandler<T> handler,
                                                FieldPVCoordinatesProvider<T> secondaryPVProvider,
                                                T distanceThreshold)
        Constructor.

        This constructor is to be used if the user wants to change the default behavior of the detector.

        Parameters:
        detectionSettings - Detection settings.
        handler - Event handler to call at event occurrences.
        secondaryPVProvider - PVCoordinates provider of the other object defining relative distance.
        distanceThreshold - Relative distance threshold for event detection
        Since:
        12.2
        See Also:
        FieldEventHandler