Class TimeIntervalDetector

    • Constructor Detail

      • TimeIntervalDetector

        public TimeIntervalDetector​(EventHandler handler,
                                    TimeInterval timeInterval)
        Constructor with default detection settings.
        Parameters:
        handler - event handler
        timeInterval - time interval
      • TimeIntervalDetector

        public TimeIntervalDetector​(EventDetectionSettings detectionSettings,
                                    EventHandler handler,
                                    TimeInterval timeInterval)
        Constructor.
        Parameters:
        detectionSettings - event detection settings
        handler - event handler
        timeInterval - time interval
    • Method Detail

      • getTimeInterval

        public TimeInterval getTimeInterval()
        Getter for the time interval.
        Returns:
        interval
      • 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.
        Returns:
        flag
      • 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