Class PythonAbstractDetector<T extends AbstractDetector<T>>

    • Constructor Detail

      • PythonAbstractDetector

        public PythonAbstractDetector​(double maxCheck,
                                      double threshold,
                                      int maxIter,
                                      EventHandler handler)
        Build a new instance.
        Parameters:
        maxCheck - maximum checking interval, must be strictly positive (s)
        threshold - convergence threshold (s)
        maxIter - maximum number of iterations in the event time search
        handler - event handler to call at event occurrences
    • Method Detail

      • pythonExtension

        public void pythonExtension​(long pythonObject)
        Part of JCC Python interface to object
      • pythonExtension

        public long pythonExtension()
        Part of JCC Python interface to object
      • pythonDecRef

        public void pythonDecRef()
        Part of JCC Python interface to object
      • 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
        Specified by:
        g in class AbstractDetector<T extends AbstractDetector<T>>
        Parameters:
        s - the current state information: date, kinematics, attitude
        Returns:
        value of the switching function
      • create

        public T create​(AdaptableInterval newMaxCheck,
                        double newThreshold,
                        int newMaxIter,
                        EventHandler newHandler)
        Build a new instance.
        Specified by:
        create in class AbstractDetector<T extends AbstractDetector<T>>
        Parameters:
        newMaxCheck - maximum checking interval (s)
        newThreshold - convergence threshold (s)
        newMaxIter - maximum number of iterations in the event time search
        newHandler - event handler to call at event occurrences
        Returns:
        a new instance of the appropriate sub-type