Package org.orekit.propagation.events
Class SingleDateDetector
java.lang.Object
org.orekit.propagation.events.AbstractDetector<SingleDateDetector>
org.orekit.propagation.events.SingleDateDetector
- All Implemented Interfaces:
EventDetector,TimeShiftable<SingleDateDetector>,TimeStamped
public class SingleDateDetector
extends AbstractDetector<SingleDateDetector>
implements TimeStamped, TimeShiftable<SingleDateDetector>
Finder for single date detection.
The event function is positive after, negative before.
- Since:
- 14.0
- Author:
- Romain Serra
- See Also:
-
Field Summary
Fields inherited from class org.orekit.propagation.events.AbstractDetector
DEFAULT_MAX_CHECK, DEFAULT_MAX_ITER, DEFAULT_THRESHOLD -
Constructor Summary
ConstructorsConstructorDescriptionSingleDateDetector(SingleDateEventFunction eventFunction, EventDetectionSettings detectionSettings, EventHandler eventHandler) Full constructor.SingleDateDetector(EventHandler eventHandler, AbsoluteDate date) Build a new instance with default detection settings.Build a new instance with default detection settings and event handler (stop on event). -
Method Summary
Modifier and TypeMethodDescriptionprotected SingleDateDetectorcreate(EventDetectionSettings detectionSettings, EventHandler newHandler) Build a new instance.doubleg(SpacecraftState s) Compute the value of the switching function.getDate()Get the date.shiftedBy(double dt) Get a time-shifted instance.withDate(AbsoluteDate newDate) Create new instance with input date.Methods inherited from class org.orekit.propagation.events.AbstractDetector
checkIfForward, getDetectionSettings, getEventFunction, getHandler, init, isForward, withDetectionSettings, withHandler, withMaxCheck, withMaxCheck, withMaxIter, withThresholdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.orekit.propagation.events.EventDetector
finish, getMaxCheckInterval, getMaxIterationCount, getThreshold, resetMethods inherited from interface org.orekit.time.TimeShiftable
shiftedByMethods inherited from interface org.orekit.time.TimeStamped
durationFrom
-
Constructor Details
-
SingleDateDetector
public SingleDateDetector(SingleDateEventFunction eventFunction, EventDetectionSettings detectionSettings, EventHandler eventHandler) Full constructor.- Parameters:
eventFunction- event functiondetectionSettings- event detection settingseventHandler- event handler
-
SingleDateDetector
Build a new instance with default detection settings.- Parameters:
eventHandler- event handlerdate- event date
-
SingleDateDetector
Build a new instance with default detection settings and event handler (stop on event).- Parameters:
date- event date
-
-
Method Details
-
create
protected SingleDateDetector create(EventDetectionSettings detectionSettings, EventHandler newHandler) Build a new instance.- Specified by:
createin classAbstractDetector<SingleDateDetector>- Parameters:
detectionSettings- detection settingsnewHandler- event handler to call at event occurrences- Returns:
- a new instance of the appropriate sub-type
-
g
Compute 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.- Specified by:
gin interfaceEventDetector- Parameters:
s- the current state information: date, kinematics, attitude- Returns:
- value of the switching function
-
getDate
Get the date.- Specified by:
getDatein interfaceTimeStamped- Returns:
- date attached to the object
-
shiftedBy
Get a time-shifted instance.- Specified by:
shiftedByin interfaceTimeShiftable<SingleDateDetector>- Parameters:
dt- time shift in seconds- Returns:
- a new instance, shifted with respect to instance (which is not changed)
-
withDate
Create new instance with input date.- Parameters:
newDate- new date to be detected- Returns:
- new detector
-