Class SecondaryEventLogger
java.lang.Object
org.orekit.propagation.events.handlers.SecondaryEventLogger
- All Implemented Interfaces:
EventHandler
Event handler logging primary and secondary positional information.
- Since:
- 13.1
- Author:
- Romain Serra
-
Constructor Summary
ConstructorsConstructorDescriptionSecondaryEventLogger(PVCoordinatesProvider secondaryPVCoordinatesProvider) Constructor with default Action (CONTINUE).SecondaryEventLogger(PVCoordinatesProvider secondaryPVCoordinatesProvider, Action action) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidMethod to clear logs.copyLogs()Method to copy logs.eventOccurred(SpacecraftState s, EventDetector detector, boolean increasing) Handle an event.voidfinish(SpacecraftState finalState, EventDetector detector) This method finalizes the event handler's job.Getter for the secondary trajectory provider.voidinit(SpacecraftState initialState, AbsoluteDate target, EventDetector detector) Initialize event handler at the start of a propagation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.orekit.propagation.events.handlers.EventHandler
resetState
-
Constructor Details
-
SecondaryEventLogger
Constructor.- Parameters:
secondaryPVCoordinatesProvider- provider for secondary trajectoryaction- action to return when event occurs
-
SecondaryEventLogger
Constructor with default Action (CONTINUE).- Parameters:
secondaryPVCoordinatesProvider- provider for secondary trajectory
-
-
Method Details
-
clearLogs
public void clearLogs()Method to clear logs. -
copyLogs
Method to copy logs.- Returns:
- copy of logs
-
getSecondaryPVCoordinatesProvider
Getter for the secondary trajectory provider.- Returns:
- secondary
-
init
Description copied from interface:EventHandlerInitialize event handler at the start of a propagation.This method is called once at the start of the propagation. It may be used by the event handler to initialize some internal data if needed.
The default implementation does nothing
- Specified by:
initin interfaceEventHandler- Parameters:
initialState- initial statetarget- target date for the propagationdetector- event detector related to the event handler
-
finish
Description copied from interface:EventHandlerThis method finalizes the event handler's job.The default implementation does nothing
- Specified by:
finishin interfaceEventHandler- Parameters:
finalState- state at propagation enddetector- event detector related to the event handler
-
eventOccurred
Description copied from interface:EventHandlerHandle an event.- Specified by:
eventOccurredin interfaceEventHandler- Parameters:
s- SpaceCraft state to be used in the evaluationdetector- object with appropriate type that can be used in determining correct return stateincreasing- with the event occurred in an "increasing" or "decreasing" slope direction- Returns:
- the Action that the calling detector should pass back to the evaluation system
-