Class AbstractStepInterpolator

  • All Implemented Interfaces:
    java.io.Externalizable, java.io.Serializable, StepInterpolator
    Direct Known Subclasses:
    NordsieckStepInterpolator

    public abstract class AbstractStepInterpolator
    extends java.lang.Object
    implements StepInterpolator
    This abstract class represents an interpolator over the last step during an ODE integration.

    The various ODE integrators provide objects extending this class to the step handlers. The handlers can use these objects to retrieve the state vector at intermediate times between the previous and the current grid points (dense output).

    Since:
    1.2
    See Also:
    FirstOrderIntegrator, SecondOrderIntegrator, StepHandler, Serialized Form
    • Field Detail

      • h

        protected double h
        current time step
      • currentState

        protected double[] currentState
        current state
      • interpolatedTime

        protected double interpolatedTime
        interpolated time
      • interpolatedState

        protected double[] interpolatedState
        interpolated state
      • interpolatedDerivatives

        protected double[] interpolatedDerivatives
        interpolated derivatives
      • interpolatedPrimaryState

        protected double[] interpolatedPrimaryState
        interpolated primary state
      • interpolatedPrimaryDerivatives

        protected double[] interpolatedPrimaryDerivatives
        interpolated primary derivatives
      • interpolatedSecondaryState

        protected double[][] interpolatedSecondaryState
        interpolated secondary state
      • interpolatedSecondaryDerivatives

        protected double[][] interpolatedSecondaryDerivatives
        interpolated secondary derivatives
    • Constructor Detail

      • AbstractStepInterpolator

        protected AbstractStepInterpolator​(double[] y,
                                           boolean forward,
                                           EquationsMapper primaryMapper,
                                           EquationsMapper[] secondaryMappers)
        Simple constructor.
        Parameters:
        y - reference to the integrator array holding the state at the end of the step
        forward - integration direction indicator
        primaryMapper - equations mapper for the primary equations set
        secondaryMappers - equations mappers for the secondary equations sets
      • AbstractStepInterpolator

        protected AbstractStepInterpolator​(AbstractStepInterpolator interpolator)
        Copy constructor.

        The copied interpolator should have been finalized before the copy, otherwise the copy will not be able to perform correctly any derivative computation and will throw a NullPointerException later. Since we don't want this constructor to throw the exceptions finalization may involve and since we don't want this method to modify the state of the copied interpolator, finalization is not done automatically, it remains under user control.

        The copy is a deep copy: its arrays are separated from the original arrays of the instance.

        Parameters:
        interpolator - interpolator to copy from.