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​(FieldAdaptableInterval<T> maxCheck,
                                                T threshold,
                                                int maxIter,
                                                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:
        maxCheck - Maximum checking interval.
        threshold - Convergence threshold (s).
        maxIter - Maximum number of iterations in the event time search.
        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
        See Also:
        FieldEventHandler