Class SingleDateDetector

    • Constructor Detail

      • SingleDateDetector

        public SingleDateDetector​(EventDetectionSettings detectionSettings,
                                  EventHandler eventHandler,
                                  AbsoluteDate date)
        Full constructor.
        Parameters:
        detectionSettings - event detection settings
        eventHandler - event handler
        date - event date
      • 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

      • dependsOnTimeOnly

        public boolean dependsOnTimeOnly()
        Method returning true if and only if the detection function g does not depend on dependent variables, just the independent one i.e. time. This information is used for performance in propagation and derivatives correction with switches in the dynamics.
        Specified by:
        dependsOnTimeOnly in interface EventDetector
        Returns:
        flag
      • 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