Interface EventFunction

    • Method Detail

      • value

        double value​(SpacecraftState state)
        Evaluate function.
        Parameters:
        state - spacecraft state
        Returns:
        value
      • value

        default <T extends CalculusFieldElement<T>> T value​(FieldSpacecraftState<T> fieldState)
        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.
        Type Parameters:
        T - field type
        Parameters:
        fieldState - spacecraft state
        Returns:
        value
      • dependsOnTimeOnly

        default boolean dependsOnTimeOnly()
        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.
        Returns:
        flag
      • dependsOnMainVariablesOnly

        default boolean dependsOnMainVariablesOnly()
        Method returning true if and only if the event function does not depend on dependent variables, other than the Cartesian coordinates (or equivalent), mass and attitude (excepts for its rates). It should thus return false if the STM is needed to evaluate the event. This information is used for performance in propagation.
        Returns:
        flag
      • of

        static <T extends CalculusFieldElement<T>> EventFunction of​(Field<T> field,
                                                                    Function<FieldSpacecraftState<T>,​T> fieldStateFunction)
        Builds an instance from a mapping with a single Field. Generalizes naively to all other Field via real part. Flags are set to default values.
        Type Parameters:
        T - field type
        Parameters:
        field - original field
        fieldStateFunction - Field function
        Returns:
        generic event function working for any field