Package org.orekit.propagation.events
Class FieldEventDetectionSettings<T extends CalculusFieldElement<T>>
java.lang.Object
org.orekit.propagation.events.FieldEventDetectionSettings<T>
- Type Parameters:
T- type of the field elements
Class containing parameters for event detection.
- Since:
- 12.2
- Author:
- Romain Serra.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doubleDefault maximum checking interval (s).static final intDefault maximum number of iterations in the event time search.static final doubleDefault convergence threshold (s). -
Constructor Summary
ConstructorsConstructorDescriptionFieldEventDetectionSettings(double maxCheck, T threshold, int maxIterationCount) Constructor with maximum check as double.FieldEventDetectionSettings(Field<T> field, EventDetectionSettings eventDetectionSettings) Constructor from non-Field settings.FieldEventDetectionSettings(FieldAdaptableInterval<T> maxCheckInterval, T threshold, int maxIterationCount) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends CalculusFieldElement<T>>
FieldEventDetectionSettings<T> getDefaultEventDetectionSettings(Field<T> field) Returns default settings for event detections.Getter for adaptable interval.intGetter for max iter.Getter for threshold.Create a non-Field equivalent object.withMaxCheckInterval(FieldAdaptableInterval<T> newMaxCheckInterval) Builds a new instance with a new max. check interval.withMaxIter(int newMaxIterationCount) Builds a new instance with a new max. iteration count.withThreshold(T newThreshold) Builds a new instance with a new threshold value.
-
Field Details
-
DEFAULT_MAX_CHECK
public static final double DEFAULT_MAX_CHECKDefault maximum checking interval (s).- See Also:
-
DEFAULT_THRESHOLD
public static final double DEFAULT_THRESHOLDDefault convergence threshold (s).- See Also:
-
DEFAULT_MAX_ITER
public static final int DEFAULT_MAX_ITERDefault maximum number of iterations in the event time search.- See Also:
-
-
Constructor Details
-
FieldEventDetectionSettings
public FieldEventDetectionSettings(FieldAdaptableInterval<T> maxCheckInterval, T threshold, int maxIterationCount) Constructor.- Parameters:
maxCheckInterval- adaptable intervalthreshold- detection threshold on timemaxIterationCount- maximum iteration number
-
FieldEventDetectionSettings
Constructor with maximum check as double.- Parameters:
maxCheck- constant maximum check for adaptable intervalthreshold- detection threshold on timemaxIterationCount- maximum iteration number
-
FieldEventDetectionSettings
Constructor from non-Field settings.- Parameters:
field- fieldeventDetectionSettings- non-Field detection settings
-
-
Method Details
-
getMaxCheckInterval
Getter for adaptable interval.- Returns:
- adaptable interval
-
getThreshold
Getter for threshold.- Returns:
- threshold
-
getMaxIterationCount
public int getMaxIterationCount()Getter for max iter.- Returns:
- max iter
-
withMaxCheckInterval
public FieldEventDetectionSettings<T> withMaxCheckInterval(FieldAdaptableInterval<T> newMaxCheckInterval) Builds a new instance with a new max. check interval.- Parameters:
newMaxCheckInterval- new max. check.- Returns:
- new object
- Since:
- 13.0
-
withThreshold
Builds a new instance with a new threshold value.- Parameters:
newThreshold- detection threshold in seconds- Returns:
- new object
- Since:
- 13.0
-
withMaxIter
Builds a new instance with a new max. iteration count.- Parameters:
newMaxIterationCount- new max iteration count.- Returns:
- new object
- Since:
- 13.0
-
getDefaultEventDetectionSettings
public static <T extends CalculusFieldElement<T>> FieldEventDetectionSettings<T> getDefaultEventDetectionSettings(Field<T> field) Returns default settings for event detections.- Type Parameters:
T- field type- Parameters:
field- field- Returns:
- default settings
- Since:
- 13.0
-
toEventDetectionSettings
Create a non-Field equivalent object.- Returns:
- event detection settings
-