Class PythonFieldEventHandler<KK extends FieldEventDetector<T>,​T extends CalculusFieldElement<T>>

    • Constructor Detail

      • PythonFieldEventHandler

        public PythonFieldEventHandler()
    • 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​(FieldSpacecraftState<T> initialState,
                         FieldAbsoluteDate<T> target)
        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 FieldEventHandler<KK extends FieldEventDetector<T>,​T extends CalculusFieldElement<T>>
        Parameters:
        initialState - initial state
        target - target date for the propagation
      • eventOccurred

        public Action eventOccurred​(FieldSpacecraftState<T> s,
                                    KK detector,
                                    boolean increasing)
        eventOccurred method mirrors the same interface method as in EventDetector and its subclasses, but with an additional parameter that allows the calling method to pass in an object from the detector which would have potential additional data to allow the implementing class to determine the correct return state.
        Specified by:
        eventOccurred in interface FieldEventHandler<KK extends FieldEventDetector<T>,​T extends CalculusFieldElement<T>>
        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