Class NegateDetector

    • Method Detail

      • getOriginal

        public EventDetector getOriginal()
        Get the delegate event detector.
        Returns:
        the delegate event detector
        Since:
        10.2
      • init

        public void init​(SpacecraftState s0,
                         AbsoluteDate t)
        Description copied from class: AbstractDetector
        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 does nothing

        This implementation sets the direction of propagation and initializes the event handler. If a subclass overrides this method it should call super.init(s0, t).

        Specified by:
        init in interface EventDetector
        Overrides:
        init in class AbstractDetector<NegateDetector>
        Parameters:
        s0 - initial state
        t - target time for the integration
      • g

        public double g​(SpacecraftState s)
        Description copied from interface: EventDetector
        Compute the value of the switching function. This function must be continuous (at least in its roots neighborhood), as the integrator will need to find its roots to locate the events.
        Parameters:
        s - the current state information: date, kinematics, attitude
        Returns:
        value of the switching function