Class FieldAdditionalEquationsAdapter<T extends CalculusFieldElement<T>>

    • Constructor Detail

      • FieldAdditionalEquationsAdapter

        public FieldAdditionalEquationsAdapter​(FieldAdditionalEquations<T> equations,
                                               Supplier<FieldSpacecraftState<T>> stateSupplier)
        Deprecated.
        Simple constructor.
        Parameters:
        equations - wrapped equations
        stateSupplier - supplier for reference state
    • Method Detail

      • getName

        public String getName()
        Deprecated.
        Get the name of the additional derivatives (which will become state once integrated).
        Specified by:
        getName in interface FieldAdditionalDerivativesProvider<T extends CalculusFieldElement<T>>
        Returns:
        name of the additional state (names containing "orekit" with any case are reserved for the library internal use)
      • yield

        public boolean yield​(FieldSpacecraftState<T> state)
        Deprecated.
        Check if this provider should yield so another provider has an opportunity to add missing parts.

        Decision to yield is often based on an additional state being already available in the provided state (but it could theoretically also depend on an additional state derivative being already available, or any other criterion). If for example a provider needs the state transition matrix, it could implement this method as:

        
         public boolean yield(final FieldSpacecraftState<T> state) {
             return !state.getAdditionalStates().containsKey("STM");
         }
         

        The default implementation returns false, meaning that derivative data can be computed immediately.

        Specified by:
        yield in interface FieldAdditionalDerivativesProvider<T extends CalculusFieldElement<T>>
        Parameters:
        state - state to handle
        Returns:
        true if this provider should yield so another provider has an opportunity to add missing parts as the state is incrementally built up