Class TimeIntervalEventFunction

  • All Implemented Interfaces:
    EventFunction

    public class TimeIntervalEventFunction
    extends Object
    implements EventFunction
    Class representing time interval crossing detection.
    Since:
    14.0
    Author:
    Romain Serra
    • Constructor Detail

      • TimeIntervalEventFunction

        public TimeIntervalEventFunction​(TimeInterval timeInterval)
        Constructor.
        Parameters:
        timeInterval - event crossing interval
    • Method Detail

      • 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