Interface AttitudeSwitchHandler

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface AttitudeSwitchHandler
    Interface for attitude switch notifications.

    This interface is intended to be implemented by users who want to be notified when an attitude switch occurs.

    Since:
    13.0
    See Also:
    AbstractAttitudesSequence
    • Method Detail

      • switchOccurred

        void switchOccurred​(AttitudeProvider preceding,
                            AttitudeProvider following,
                            SpacecraftState state)
        Method called when attitude is switched from one law to another law.
        Parameters:
        preceding - attitude law used preceding the switch (i.e. in the past of the switch event for a forward propagation, or in the future of the switch event for a backward propagation)
        following - attitude law used following the switch (i.e. in the future of the switch event for a forward propagation, or in the past of the switch event for a backward propagation)
        state - state at switch time (with attitude computed using the past law)