Class FieldEventSlopeFilter<D extends FieldEventDetector<T>,​T extends CalculusFieldElement<T>>

  • Type Parameters:
    D - type of the detector
    T - type of the field elements
    All Implemented Interfaces:
    FieldEventDetector<T>

    public class FieldEventSlopeFilter<D extends FieldEventDetector<T>,​T extends CalculusFieldElement<T>>
    extends FieldAbstractDetector<FieldEventSlopeFilter<D,​T>,​T>
    Wrapper used to detect only increasing or decreasing events.

    This class is heavily based on the class EventFilter from the Hipparchus library. The changes performed consist in replacing raw types (double and double arrays) with space dynamics types (FieldAbsoluteDate, FieldSpacecraftState).

    General events are defined implicitly by a g function crossing zero. This function needs to be continuous in the event neighborhood, and its sign must remain consistent between events. This implies that during an orbit propagation, events triggered are alternately events for which the function increases from negative to positive values, and events for which the function decreases from positive to negative values.

    Sometimes, users are only interested in one type of event (say increasing events for example) and not in the other type. In these cases, looking precisely for all events location and triggering events that will later be ignored is a waste of computing time.

    Users can wrap a regular event detector in an instance of this class and provide this wrapping instance to a FieldPropagator in order to avoid wasting time looking for uninteresting events. The wrapper will intercept the calls to the g function and to the eventOccurred method in order to ignore uninteresting events. The wrapped regular event detector will then see only the interesting events, i.e. either only increasing events or only decreasing events. The number of calls to the g function will also be reduced.

    See Also:
    FieldEventEnablingPredicateFilter