Class SingleDateEventFunction

java.lang.Object
org.orekit.propagation.events.functions.SingleDateEventFunction
All Implemented Interfaces:
EventFunction, TimeShiftable<SingleDateEventFunction>, TimeStamped

public class SingleDateEventFunction extends Object implements EventFunction, TimeStamped, TimeShiftable<SingleDateEventFunction>
Class representing single date detection. It is negative before the epoch.
Since:
14.0
Author:
Romain Serra
  • Constructor Details

    • SingleDateEventFunction

      public SingleDateEventFunction(AbsoluteDate date)
      Constructor.
      Parameters:
      date - event date
  • Method Details

    • value

      public double value(SpacecraftState state)
      Description copied from interface: EventFunction
      Evaluate function.
      Specified by:
      value in interface EventFunction
      Parameters:
      state - spacecraft state
      Returns:
      value
    • value

      public <T extends CalculusFieldElement<T>> T value(FieldSpacecraftState<T> fieldState)
      Description copied from interface: EventFunction
      Evaluate Field function. By default, calls the non-Field version. This is suitable for detection but not be for applications like automatic differentiation, where a proper implementation should be used instead.
      Specified by:
      value in interface EventFunction
      Type Parameters:
      T - field type
      Parameters:
      fieldState - spacecraft state
      Returns:
      value
    • dependsOnTimeOnly

      public boolean dependsOnTimeOnly()
      Description copied from interface: EventFunction
      Method returning true if and only if the event function does not depend on dependent variables, just the independent one i.e. time. This information is used for performance in propagation and derivatives correction with switches in the dynamics.
      Specified by:
      dependsOnTimeOnly in interface EventFunction
      Returns:
      flag
    • getDate

      public AbsoluteDate getDate()
      Description copied from interface: TimeStamped
      Get the date.
      Specified by:
      getDate in interface TimeStamped
      Returns:
      date attached to the object
    • shiftedBy

      public SingleDateEventFunction shiftedBy(double dt)
      Description copied from interface: TimeShiftable
      Get a time-shifted instance.
      Specified by:
      shiftedBy in interface TimeShiftable<SingleDateEventFunction>
      Parameters:
      dt - time shift in seconds
      Returns:
      a new instance, shifted with respect to instance (which is not changed)
    • shiftedBy

      public SingleDateEventFunction shiftedBy(TimeOffset dt)
      Description copied from interface: TimeShiftable
      Get a time-shifted instance.
      Specified by:
      shiftedBy in interface TimeShiftable<SingleDateEventFunction>
      Parameters:
      dt - time shift
      Returns:
      a new instance, shifted with respect to instance (which is not changed)