Class TimeIntervalsManeuverTrigger
- java.lang.Object
-
- org.orekit.forces.maneuvers.trigger.AbstractManeuverTriggers
-
- org.orekit.forces.maneuvers.trigger.IntervalEventTrigger<BooleanDetector>
-
- org.orekit.forces.maneuvers.trigger.TimeIntervalsManeuverTrigger
-
- All Implemented Interfaces:
ManeuverTriggers,ResettableManeuverTriggers,EventDetectorsProvider,ParameterDriversProvider
public class TimeIntervalsManeuverTrigger extends IntervalEventTrigger<BooleanDetector>
Maneuver trigger based on time intervals.- Since:
- 13.1
- Author:
- Romain Serra
- See Also:
TimeInterval,IntervalEventTrigger
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.orekit.forces.maneuvers.trigger.AbstractManeuverTriggers
AbstractManeuverTriggers.FieldTriggerHandler<S extends CalculusFieldElement<S>>, AbstractManeuverTriggers.TriggerHandler
-
-
Field Summary
-
Fields inherited from interface org.orekit.propagation.events.EventDetectorsProvider
DATATION_ACCURACY
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <D extends FieldEventDetector<S>,S extends CalculusFieldElement<S>>
DconvertIntervalDetector(Field<S> field, BooleanDetector detector)Convert a primitive firing intervals detector into a field firing intervals detector.List<ParameterDriver>getParametersDrivers()Get the drivers for parameters.static TimeIntervalsManeuverTriggerof(List<TimeInterval> timeIntervals)Build an instance based on the input time intervals.static TimeIntervalsManeuverTriggerof(TimeIntervalDetector... timeIntervalDetectors)Build an instance based on the input time interval detectors.static TimeIntervalsManeuverTriggerof(TimeInterval... timeIntervals)Build an instance based on the input time intervals.-
Methods inherited from class org.orekit.forces.maneuvers.trigger.IntervalEventTrigger
getEventDetectors, getFieldEventDetectors, getFiringIntervalDetector, init, init, isFiringOnInitialState
-
Methods inherited from class org.orekit.forces.maneuvers.trigger.AbstractManeuverTriggers
addResetter, addResetter, applyResetters, applyResetters, getFirings, initializeResetters, initializeResetters, isFiring, isFiring, notifyResetters, notifyResetters
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.orekit.propagation.events.EventDetectorsProvider
getDateDetector, getEventDetectors, getFieldDateDetector, getFieldEventDetectors
-
Methods inherited from interface org.orekit.forces.maneuvers.trigger.ManeuverTriggers
getName
-
Methods inherited from interface org.orekit.utils.ParameterDriversProvider
getNbParametersDriversValue, getParameterDriver, getParameters, getParameters, getParameters, getParameters, getParametersAllValues, getParametersAllValues, isSupported
-
-
-
-
Method Detail
-
of
public static TimeIntervalsManeuverTrigger of(TimeInterval... timeIntervals)
Build an instance based on the input time intervals. Detectors are created with default settings.- Parameters:
timeIntervals- intervals- Returns:
- maneuver trigger
-
of
public static TimeIntervalsManeuverTrigger of(List<TimeInterval> timeIntervals)
Build an instance based on the input time intervals. Detectors are created with default settings.- Parameters:
timeIntervals- intervals- Returns:
- maneuver trigger
- Since:
- 14.0
-
of
public static TimeIntervalsManeuverTrigger of(TimeIntervalDetector... timeIntervalDetectors)
Build an instance based on the input time interval detectors.- Parameters:
timeIntervalDetectors- detectors- Returns:
- maneuver trigger
-
convertIntervalDetector
protected <D extends FieldEventDetector<S>,S extends CalculusFieldElement<S>> D convertIntervalDetector(Field<S> field, BooleanDetector detector)
Description copied from class:IntervalEventTriggerConvert a primitive firing intervals detector into a field firing intervals detector.The
FieldEventDetectionSettingsmust be set up in conformance with the non-field detector.A skeleton implementation of this method to convert some
XyzDetectorintoFieldXyzDetector, considering these detectors are created from a date and a number parameter is:protected <D extends FieldEventDetector<S>, S extends CalculusFieldElement<S>> D convertIntervalDetector(final Field<S> field, final XyzDetector detector) { final FieldAbsoluteDate<S> date = new FieldAbsoluteDate<>(field, detector.getDate()); final S param = field.getZero().newInstance(detector.getParam()); D converted = (D) new FieldXyzDetector<>(date, param).withDetectionSettings(field, detector.getDetectionSettings()); return converted; }- Specified by:
convertIntervalDetectorin classIntervalEventTrigger<BooleanDetector>- Type Parameters:
D- type of the event detectorS- type of the field elements- Parameters:
field- field to which the state belongsdetector- primitive firing intervals detector to convert- Returns:
- converted firing intervals detector
-
getParametersDrivers
public List<ParameterDriver> getParametersDrivers()
Description copied from interface:ParameterDriversProviderGet the drivers for parameters.- Returns:
- drivers for parameters
-
-