Class DateBasedManeuverTriggers

All Implemented Interfaces:
ManeuverTriggers, ResettableManeuverTriggers, EventDetectorsProvider, ParameterDriversProvider

public class DateBasedManeuverTriggers extends IntervalEventTrigger<ParameterDrivenDateIntervalDetector>
Maneuver triggers based on a start and end date.
Since:
10.2
Author:
Maxime Journot
  • Field Details

  • Constructor Details

    • DateBasedManeuverTriggers

      public DateBasedManeuverTriggers(AbsoluteDate date, double duration)
      Simple constructor.
      Parameters:
      date - start (or end) data of the maneuver
      duration - maneuver duration (if positive, maneuver is from date to date + duration, if negative, maneuver will be from date - duration to date)
    • DateBasedManeuverTriggers

      public DateBasedManeuverTriggers(String name, AbsoluteDate date, double duration)
      Simple constructor.
      Parameters:
      name - name of the trigger (used as prefix for start and stop parameters drivers)
      date - start (or end) data of the maneuver
      duration - maneuver duration (if positive, maneuver is from date to date + duration, if negative, maneuver will be from date - duration to date)
      Since:
      11.1
    • DateBasedManeuverTriggers

      public DateBasedManeuverTriggers(String name, AbsoluteDate date, double duration, EventDetectionSettings detectionSettings)
      Simple constructor.
      Parameters:
      name - name of the trigger (used as prefix for start and stop parameters drivers)
      date - start (or end) data of the maneuver
      duration - maneuver duration (if positive, maneuver is from date to date + duration, if negative, maneuver will be from date - duration to date)
      detectionSettings - date detection settings (warning: choose with care, as poor settings might miss the maneuver)
      Since:
      13.0
  • Method Details

    • getName

      public String getName()
      Get the maneuver name.
      Returns:
      the maneuver name
    • getStartDate

      public AbsoluteDate getStartDate()
      Get the start date.
      Returns:
      the start date
    • getEndDate

      public AbsoluteDate getEndDate()
      Get the end date.
      Returns:
      the end date
    • getDuration

      public double getDuration()
      Get the duration of the maneuver (s). duration = endDate - startDate
      Returns:
      the duration of the maneuver (s)
    • convertIntervalDetector

      protected <S extends CalculusFieldElement<S>> FieldParameterDrivenDateIntervalDetector<S> convertIntervalDetector(Field<S> field, ParameterDrivenDateIntervalDetector detector)
      Convert a primitive firing intervals detector into a field firing intervals detector.

      The FieldEventDetectionSettings must be set up in conformance with the non-field detector.

      A default implementation is provided but might need to be overridden in specific cases.

      Overrides:
      convertIntervalDetector in class IntervalEventTrigger<ParameterDrivenDateIntervalDetector>
      Type Parameters:
      S - type of the field elements
      Parameters:
      field - field to which the state belongs
      detector - primitive firing intervals detector to convert
      Returns:
      converted firing intervals detector
    • getParametersDrivers

      public List<ParameterDriver> getParametersDrivers()
      Get the drivers for parameters.

      By default, no drivers is defined.

      Returns:
      drivers for parameters