Package org.orekit.propagation.events
Class FieldTimeIntervalDetector<T extends CalculusFieldElement<T>>
- java.lang.Object
-
- org.orekit.propagation.events.FieldAbstractDetector<FieldTimeIntervalDetector<T>,T>
-
- org.orekit.propagation.events.FieldTimeIntervalDetector<T>
-
- All Implemented Interfaces:
FieldEventDetector<T>
public class FieldTimeIntervalDetector<T extends CalculusFieldElement<T>> extends FieldAbstractDetector<FieldTimeIntervalDetector<T>,T>
Detector for time intervals. Positive whenever the date is inside, negative otherwise.- Since:
- 13.1
- Author:
- Romain Serra
- See Also:
TimeInterval,TimeIntervalDetector
-
-
Field Summary
-
Fields inherited from class org.orekit.propagation.events.FieldAbstractDetector
DEFAULT_MAX_CHECK, DEFAULT_MAX_ITER, DEFAULT_THRESHOLD
-
-
Constructor Summary
Constructors Constructor Description FieldTimeIntervalDetector(Field<T> field, TimeInterval timeInterval)Constructor with default detection settings and handler.FieldTimeIntervalDetector(FieldEventDetectionSettings<T> detectionSettings, FieldEventHandler<T> handler, TimeInterval timeInterval)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FieldTimeIntervalDetector<T>create(FieldEventDetectionSettings<T> detectionSettings, FieldEventHandler<T> newHandler)Build a new instance.booleandependsOnTimeOnly()Method returning true if and only if the detection function g does not depend on dependent variables, just the independent one i.e. time.Tg(FieldSpacecraftState<T> s)Compute the value of the switching function.TimeIntervalgetTimeInterval()Getter for the time interval.-
Methods inherited from class org.orekit.propagation.events.FieldAbstractDetector
checkIfForward, getDetectionSettings, getHandler, init, isForward, withDetectionSettings, withHandler, withMaxCheck, withMaxCheck, withMaxIter, withThreshold
-
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.FieldEventDetector
dependsOnMainVariablesOnly, finish, getMaxCheckInterval, getMaxIterationCount, getThreshold, reset
-
-
-
-
Constructor Detail
-
FieldTimeIntervalDetector
public FieldTimeIntervalDetector(Field<T> field, TimeInterval timeInterval)
Constructor with default detection settings and handler.- Parameters:
field- fieldtimeInterval- time interval
-
FieldTimeIntervalDetector
public FieldTimeIntervalDetector(FieldEventDetectionSettings<T> detectionSettings, FieldEventHandler<T> handler, TimeInterval timeInterval)
Constructor.- Parameters:
detectionSettings- event detection settingshandler- event handlertimeInterval- time interval
-
-
Method Detail
-
getTimeInterval
public TimeInterval getTimeInterval()
Getter for the time interval.- Returns:
- interval
-
create
protected FieldTimeIntervalDetector<T> create(FieldEventDetectionSettings<T> detectionSettings, FieldEventHandler<T> newHandler)
Description copied from class:FieldAbstractDetectorBuild a new instance.- Specified by:
createin classFieldAbstractDetector<FieldTimeIntervalDetector<T extends CalculusFieldElement<T>>,T extends CalculusFieldElement<T>>- Parameters:
detectionSettings- detection settingsnewHandler- event handler to call at event occurrences- Returns:
- a new instance of the appropriate sub-type
-
dependsOnTimeOnly
public boolean dependsOnTimeOnly()
Method returning true if and only if the detection function g does not depend on dependent variables, just the independent one i.e. time. This information is used for performance in propagation and derivatives correction with switches in the dynamics.- Returns:
- flag
-
g
public T g(FieldSpacecraftState<T> s)
Description copied from interface:FieldEventDetectorCompute the value of the switching function. This function must be continuous (at least in its roots neighborhood), as the integrator will need to find its roots to locate the events.- Parameters:
s- the current state information: date, kinematics, attitude- Returns:
- value of the switching function
-
-