Class DateBasedManeuverTriggers
java.lang.Object
org.orekit.forces.maneuvers.trigger.AbstractManeuverTriggers
org.orekit.forces.maneuvers.trigger.IntervalEventTrigger<ParameterDrivenDateIntervalDetector>
org.orekit.forces.maneuvers.trigger.DateBasedManeuverTriggers
- All Implemented Interfaces:
ManeuverTriggers,ResettableManeuverTriggers,EventDetectorsProvider,ParameterDriversProvider
public class DateBasedManeuverTriggers
extends IntervalEventTrigger<ParameterDrivenDateIntervalDetector>
Maneuver triggers based on a start and end date.
- Since:
- 10.2
- Author:
- Maxime Journot
-
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
FieldsFields inherited from interface org.orekit.propagation.events.EventDetectorsProvider
DATATION_ACCURACY -
Constructor Summary
ConstructorsConstructorDescriptionDateBasedManeuverTriggers(String name, AbsoluteDate date, double duration) Simple constructor.DateBasedManeuverTriggers(String name, AbsoluteDate date, double duration, EventDetectionSettings detectionSettings) Simple constructor.DateBasedManeuverTriggers(AbsoluteDate date, double duration) Simple constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected <S extends CalculusFieldElement<S>>
FieldParameterDrivenDateIntervalDetector<S> convertIntervalDetector(Field<S> field, ParameterDrivenDateIntervalDetector detector) Convert a primitive firing intervals detector into a field firing intervals detector.doubleGet the duration of the maneuver (s).Get the end date.getName()Get the maneuver name.Get the drivers for parameters.Get the start date.Methods inherited from class org.orekit.forces.maneuvers.trigger.IntervalEventTrigger
getEventDetectors, getFieldEventDetectors, getFiringIntervalDetector, init, init, isFiringOnInitialStateMethods inherited from class org.orekit.forces.maneuvers.trigger.AbstractManeuverTriggers
addResetter, addResetter, applyResetters, applyResetters, convertDetector, getFirings, initializeResetters, initializeResetters, isFiring, isFiring, notifyResetters, notifyResettersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.orekit.propagation.events.EventDetectorsProvider
getDateDetector, getEventDetectors, getFieldDateDetector, getFieldEventDetectorsMethods inherited from interface org.orekit.utils.ParameterDriversProvider
getNbParametersDriversValue, getParameterDriver, getParameters, getParameters, getParameters, getParameters, getParametersAllValues, getParametersAllValues, isSupported
-
Field Details
-
DEFAULT_NAME
Default name for trigger.- See Also:
-
-
Constructor Details
-
DateBasedManeuverTriggers
Simple constructor.- Parameters:
date- start (or end) data of the maneuverduration- maneuver duration (if positive, maneuver is from date to date + duration, if negative, maneuver will be from date - duration to date)
-
DateBasedManeuverTriggers
Simple constructor.- Parameters:
name- name of the trigger (used as prefix for start and stop parameters drivers)date- start (or end) data of the maneuverduration- maneuver duration (if positive, maneuver is from date to date + duration, if negative, maneuver will be from date - duration to date)- Since:
- 11.1
-
DateBasedManeuverTriggers
public DateBasedManeuverTriggers(String name, AbsoluteDate date, double duration, EventDetectionSettings detectionSettings) Simple constructor.- Parameters:
name- name of the trigger (used as prefix for start and stop parameters drivers)date- start (or end) data of the maneuverduration- maneuver duration (if positive, maneuver is from date to date + duration, if negative, maneuver will be from date - duration to date)detectionSettings- date detection settings (warning: choose with care, as poor settings might miss the maneuver)- Since:
- 13.0
-
-
Method Details
-
getName
Get the maneuver name.- Returns:
- the maneuver name
-
getStartDate
Get the start date.- Returns:
- the start date
-
getEndDate
Get the end date.- Returns:
- the end date
-
getDuration
public double getDuration()Get the duration of the maneuver (s). duration = endDate - startDate- Returns:
- the duration of the maneuver (s)
-
convertIntervalDetector
protected <S extends CalculusFieldElement<S>> FieldParameterDrivenDateIntervalDetector<S> convertIntervalDetector(Field<S> field, ParameterDrivenDateIntervalDetector detector) Convert a primitive firing intervals detector into a field firing intervals detector.The
FieldEventDetectionSettingsmust be set up in conformance with the non-field detector.A default implementation is provided but might need to be overridden in specific cases.
- Overrides:
convertIntervalDetectorin classIntervalEventTrigger<ParameterDrivenDateIntervalDetector>- Type Parameters:
S- 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
Get the drivers for parameters.By default, no drivers is defined.
- Returns:
- drivers for parameters
-