Class SingleDateDetector

    • Constructor Detail

      • SingleDateDetector

        public SingleDateDetector​(SingleDateEventFunction eventFunction,
                                  EventDetectionSettings detectionSettings,
                                  EventHandler eventHandler)
        Full constructor.
        Parameters:
        eventFunction - event function
        detectionSettings - event detection settings
        eventHandler - event handler
      • SingleDateDetector

        public SingleDateDetector​(EventHandler eventHandler,
                                  AbsoluteDate date)
        Build a new instance with default detection settings.
        Parameters:
        eventHandler - event handler
        date - event date
      • SingleDateDetector

        public SingleDateDetector​(AbsoluteDate date)
        Build a new instance with default detection settings and event handler (stop on event).
        Parameters:
        date - event date
    • Method Detail

      • g

        public double g​(SpacecraftState s)
        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.
        Specified by:
        g in interface EventDetector
        Parameters:
        s - the current state information: date, kinematics, attitude
        Returns:
        value of the switching function
      • withDate

        public SingleDateDetector withDate​(AbsoluteDate newDate)
        Create new instance with input date.
        Parameters:
        newDate - new date to be detected
        Returns:
        new detector