Class FieldLatitudeRangeCrossingDetector<T extends CalculusFieldElement<T>>

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

public class FieldLatitudeRangeCrossingDetector<T extends CalculusFieldElement<T>> extends FieldAbstractGeographicalDetector<FieldLatitudeRangeCrossingDetector<T>,T>
Detector for geographic latitude crossing.

This detector identifies when a spacecraft crosses a fixed latitude range with respect to a central body.

Since:
12.0
Author:
Alberto Ferrero
  • Constructor Details

    • FieldLatitudeRangeCrossingDetector

      public FieldLatitudeRangeCrossingDetector(Field<T> field, BodyShape body, double fromLatitude, double toLatitude)
      Build a new detector.

      The new instance uses default values for maximal checking interval (FieldAbstractDetector.DEFAULT_MAX_CHECK) and convergence threshold (FieldAbstractDetector.DEFAULT_THRESHOLD).

      Parameters:
      field - the type of numbers to use.
      body - body on which the latitude is defined
      fromLatitude - latitude to be crossed, lower range boundary
      toLatitude - latitude to be crossed, upper range boundary
    • FieldLatitudeRangeCrossingDetector

      public FieldLatitudeRangeCrossingDetector(T maxCheck, T threshold, BodyShape body, double fromLatitude, double toLatitude)
      Build a detector.
      Parameters:
      maxCheck - maximal checking interval (s)
      threshold - convergence threshold (s)
      body - body on which the latitude is defined
      fromLatitude - latitude to be crossed, lower range boundary
      toLatitude - latitude to be crossed, upper range boundary
    • FieldLatitudeRangeCrossingDetector

      protected FieldLatitudeRangeCrossingDetector(FieldEventDetectionSettings<T> detectionSettings, FieldEventHandler<T> handler, BodyShape body, double fromLatitude, double toLatitude)
      Private constructor with full parameters.

      This constructor is private as users are expected to use the builder API with the various withXxx() methods to set up the instance in a readable manner without using a huge amount of parameters.

      Parameters:
      detectionSettings - event detection settings
      handler - event handler to call at event occurrences
      body - body on which the latitude is defined
      fromLatitude - latitude to be crossed, lower range boundary
      toLatitude - latitude to be crossed, upper range boundary
      Since:
      13.0
  • Method Details