Class PythonManeuverTriggers

    • Field Detail

      • pythonObject

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

      • PythonManeuverTriggers

        public PythonManeuverTriggers()
    • Method Detail

      • pythonExtension

        public void pythonExtension​(long pythonObject)
      • pythonExtension

        public long pythonExtension()
      • pythonDecRef

        public void pythonDecRef()
      • init

        public void init​(SpacecraftState initialState,
                         AbsoluteDate target)
        Initialization method called at propagation start.

        The default implementation does nothing.

        Specified by:
        init in interface ManeuverTriggers
        Parameters:
        initialState - initial spacecraft state (at the start of propagation).
        target - date of propagation. Not equal to initialState.getDate().
      • isFiring

        public boolean isFiring​(AbsoluteDate date,
                                double[] parameters)
        Find out if the maneuver is firing or not.
        Specified by:
        isFiring in interface ManeuverTriggers
        Parameters:
        date - current date
        parameters - maneuver triggers parameters
        Returns:
        true if the maneuver is firing, false otherwise
      • isFiring

        public <T extends CalculusFieldElement<T>> boolean isFiring​(FieldAbsoluteDate<T> date,
                                                                    T[] parameters)
        Find out if the maneuver is firing or not.
        Specified by:
        isFiring in interface ManeuverTriggers
        Type Parameters:
        T - type of the field elements
        Parameters:
        date - current date
        parameters - maneuver triggers parameters
        Returns:
        true if the maneuver is firing, false otherwise
      • getEventDetectors

        public Stream<EventDetector> getEventDetectors()
        Get the discrete events related to the model.

        This method is not intended to be called several time, only once by a propagator, as it has the side effect of rebuilding the events detectors when called

        Specified by:
        getEventDetectors in interface EventDetectorsProvider
        Returns:
        stream of event detectors
      • getFieldEventDetectors

        public <T extends CalculusFieldElement<T>> Stream<FieldEventDetector<T>> getFieldEventDetectors​(Field<T> field)
        Get the discrete events related to the model.

        This method is not intended to be called several time, only once by a propagator, as it has the side effect of rebuilding the events detectors when called

        Specified by:
        getFieldEventDetectors in interface EventDetectorsProvider
        Type Parameters:
        T - extends CalculusFieldElement<T>
        Parameters:
        field - field to which the state belongs
        Returns:
        stream of event detectors