Class TimeIntervalDetector

java.lang.Object
org.orekit.propagation.events.AbstractDetector<TimeIntervalDetector>
org.orekit.propagation.events.TimeIntervalDetector
All Implemented Interfaces:
EventDetector

public class TimeIntervalDetector extends AbstractDetector<TimeIntervalDetector>
Detector for time intervals. Positive whenever the date is inside, negative otherwise.
Since:
13.1
Author:
Romain Serra
See Also:
  • Constructor Details

    • TimeIntervalDetector

      public TimeIntervalDetector(EventHandler handler, TimeInterval timeInterval)
      Constructor with default detection settings.
      Parameters:
      handler - event handler
      timeInterval - time interval
    • TimeIntervalDetector

      public TimeIntervalDetector(EventDetectionSettings detectionSettings, EventHandler handler, TimeInterval timeInterval)
      Constructor.
      Parameters:
      detectionSettings - event detection settings
      handler - event handler
      timeInterval - time interval
    • TimeIntervalDetector

      public TimeIntervalDetector(TimeIntervalEventFunction eventFunction, EventDetectionSettings detectionSettings, EventHandler handler)
      Full constructor.
      Parameters:
      eventFunction - event function
      detectionSettings - event detection settings
      handler - event handler
      Since:
      14.0
  • Method Details

    • getTimeInterval

      public TimeInterval getTimeInterval()
      Getter for the time interval.
      Returns:
      interval
    • create

      protected TimeIntervalDetector create(EventDetectionSettings detectionSettings, EventHandler newHandler)
      Description copied from class: AbstractDetector
      Build a new instance.
      Specified by:
      create in class AbstractDetector<TimeIntervalDetector>
      Parameters:
      detectionSettings - detection settings
      newHandler - event handler to call at event occurrences
      Returns:
      a new instance of the appropriate sub-type
    • g

      public double g(SpacecraftState s)
      Description copied from interface: EventDetector
      Compute the value of the switching function. This function must be continuous (at least in its roots neighborhood), as the integrator will need to find its roots to locate the events.
      Parameters:
      s - the current state information: date, kinematics, attitude
      Returns:
      value of the switching function