Class AttitudesSwitcher.InstantaneousSwitch

    • Method Detail

      • init

        public void init​(SpacecraftState s0,
                         AbsoluteDate t)
        Initialize event handler at the start of a propagation.

        This method is called once at the start of the propagation. It may be used by the event handler to initialize some internal data if needed.

        The default implementation initializes the handler.

        Specified by:
        init in interface EventDetector
        Overrides:
        init in class AdapterDetector
        Parameters:
        s0 - initial state
        t - target time for the integration
      • eventOccurred

        public Action eventOccurred​(SpacecraftState s,
                                    EventDetector detector,
                                    boolean increasing)
        Handle an event.
        Parameters:
        s - SpaceCraft state to be used in the evaluation
        detector - object with appropriate type that can be used in determining correct return state
        increasing - with the event occurred in an "increasing" or "decreasing" slope direction
        Returns:
        the Action that the calling detector should pass back to the evaluation system
      • getSwitchHandler

        protected AttitudeSwitchHandler getSwitchHandler()
        Protected getter for switch handle.
        Returns:
        switch handler
      • getFuture

        protected AttitudeProvider getFuture()
        Protected getter for future attitude provider.
        Returns:
        future provider
      • getPast

        protected AttitudeProvider getPast()
        Protected getter for past attitude provider.
        Returns:
        pas provider
      • isSwitchOnDecrease

        protected boolean isSwitchOnDecrease()
        Protected getter for switch-on-decrease flag.
        Returns:
        flag
      • isSwitchOnIncrease

        protected boolean isSwitchOnIncrease()
        Protected getter for switch-on-increase flag.
        Returns:
        flag