Class SecondaryEventLogger
- java.lang.Object
-
- org.orekit.propagation.events.handlers.SecondaryEventLogger
-
- All Implemented Interfaces:
EventHandler
public class SecondaryEventLogger extends Object implements EventHandler
Event handler logging primary and secondary positional information.- Since:
- 13.1
- Author:
- Romain Serra
-
-
Constructor Summary
Constructors Constructor Description SecondaryEventLogger(PVCoordinatesProvider secondaryPVCoordinatesProvider)Constructor with default Action (CONTINUE).SecondaryEventLogger(PVCoordinatesProvider secondaryPVCoordinatesProvider, Action action)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearLogs()Method to clear logs.List<Pair<AbsolutePVCoordinates,PVCoordinates>>copyLogs()Method to copy logs.ActioneventOccurred(SpacecraftState s, EventDetector detector, boolean increasing)Handle an event.voidfinish(SpacecraftState finalState, EventDetector detector)This method finalizes the event handler's job.PVCoordinatesProvidergetSecondaryPVCoordinatesProvider()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, wait
-
Methods inherited from interface org.orekit.propagation.events.handlers.EventHandler
resetState
-
-
-
-
Constructor Detail
-
SecondaryEventLogger
public SecondaryEventLogger(PVCoordinatesProvider secondaryPVCoordinatesProvider, Action action)
Constructor.- Parameters:
secondaryPVCoordinatesProvider- provider for secondary trajectoryaction- action to return when event occurs
-
SecondaryEventLogger
public SecondaryEventLogger(PVCoordinatesProvider secondaryPVCoordinatesProvider)
Constructor with default Action (CONTINUE).- Parameters:
secondaryPVCoordinatesProvider- provider for secondary trajectory
-
-
Method Detail
-
clearLogs
public void clearLogs()
Method to clear logs.
-
copyLogs
public List<Pair<AbsolutePVCoordinates,PVCoordinates>> copyLogs()
Method to copy logs.- Returns:
- copy of logs
-
getSecondaryPVCoordinatesProvider
public PVCoordinatesProvider getSecondaryPVCoordinatesProvider()
Getter for the secondary trajectory provider.- Returns:
- secondary
-
init
public void init(SpacecraftState initialState, AbsoluteDate target, EventDetector detector)
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
public void finish(SpacecraftState finalState, EventDetector detector)
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
public Action eventOccurred(SpacecraftState s, EventDetector detector, boolean increasing)
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
-
-