Class PythonEventHandler

    • Field Detail

      • pythonObject

        protected long pythonObject
        Part of JCC Python interface to object
    • Constructor Detail

      • PythonEventHandler

        public PythonEventHandler()
    • 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
      • init

        public void init​(SpacecraftState initialState,
                         AbsoluteDate target,
                         EventDetector detector)
        Description copied from interface: EventHandler
        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

        Specified by:
        init in interface EventHandler
        Parameters:
        initialState - initial state
        target - target date for the propagation
        detector - event detector related to the event handler
      • eventOccurred

        public Action eventOccurred​(SpacecraftState s,
                                    EventDetector detector,
                                    boolean increasing)
        Description copied from interface: EventHandler
        Handle an event.
        Specified by:
        eventOccurred in interface EventHandler
        Parameters:
        s - SpaceCraft state to be used in the evaluation
        detector - object with appropriate type that can be used in determining correct return state
        increasing - with the event occurred in an "increasing" or "decreasing" slope direction
        Returns:
        the Action that the calling detector should pass back to the evaluation system