Class FieldLongitudeRangeCrossingDetector<T extends CalculusFieldElement<T>>

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

public class FieldLongitudeRangeCrossingDetector<T extends CalculusFieldElement<T>> extends FieldAbstractGeographicalDetector<FieldLongitudeRangeCrossingDetector<T>,T>
Detector for geographic longitude crossing.

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

Since:
12.0
Author:
Alberto Ferrero
  • Constructor Details

    • FieldLongitudeRangeCrossingDetector

      public FieldLongitudeRangeCrossingDetector(Field<T> field, BodyShape body, double fromLongitude, double toLongitude)
      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 longitude is defined
      fromLongitude - longitude to be crossed, lower range boundary
      toLongitude - longitude to be crossed, upper range boundary
    • FieldLongitudeRangeCrossingDetector

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

      protected FieldLongitudeRangeCrossingDetector(FieldEventDetectionSettings<T> detectionSettings, FieldEventHandler<T> handler, BodyShape body, double fromLongitude, double toLongitude)
      Protected 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 longitude is defined
      fromLongitude - longitude to be crossed, lower range boundary
      toLongitude - longitude to be crossed, upper range
      Since:
      13.0
  • Method Details