Class FieldSecondaryEventLogger<T extends CalculusFieldElement<T>>
java.lang.Object
org.orekit.propagation.events.handlers.FieldSecondaryEventLogger<T>
- All Implemented Interfaces:
FieldEventHandler<T>
public class FieldSecondaryEventLogger<T extends CalculusFieldElement<T>>
extends Object
implements FieldEventHandler<T>
Event handler logging primary and secondary positional information.
- Since:
- 13.1
- Author:
- Romain Serra
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFieldSecondaryEventLogger(FieldPVCoordinatesProvider<T> secondaryPVCoordinatesProvider) Constructor with default Action (CONTINUE).FieldSecondaryEventLogger(FieldPVCoordinatesProvider<T> secondaryPVCoordinatesProvider, Action action) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidMethod to clear logs.copyLogs()Method to copy logs.eventOccurred(FieldSpacecraftState<T> s, FieldEventDetector<T> detector, boolean increasing) Handle an event.voidfinish(FieldSpacecraftState<T> finalState, FieldEventDetector<T> detector) This method finalize event handler at the end of a propagation.Getter for the secondary trajectory provider.voidinit(FieldSpacecraftState<T> initialState, FieldAbsoluteDate<T> target, FieldEventDetector<T> 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.FieldEventHandler
resetState
-
Constructor Details
-
FieldSecondaryEventLogger
public FieldSecondaryEventLogger(FieldPVCoordinatesProvider<T> secondaryPVCoordinatesProvider, Action action) Constructor.- Parameters:
secondaryPVCoordinatesProvider- provider for secondary trajectoryaction- action to return when event occurs
-
FieldSecondaryEventLogger
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
public void init(FieldSpacecraftState<T> initialState, FieldAbsoluteDate<T> target, FieldEventDetector<T> detector) Description copied from interface:FieldEventHandlerInitialize 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 interfaceFieldEventHandler<T extends CalculusFieldElement<T>>- Parameters:
initialState- initial statetarget- target date for the propagationdetector- event detector related to the event handler
-
finish
Description copied from interface:FieldEventHandlerThis method finalize event handler at the end of a propagation.The default implementation does nothing
- Specified by:
finishin interfaceFieldEventHandler<T extends CalculusFieldElement<T>>- Parameters:
finalState- state at propagation enddetector- event detector related to the event handler
-
eventOccurred
public Action eventOccurred(FieldSpacecraftState<T> s, FieldEventDetector<T> detector, boolean increasing) Description copied from interface:FieldEventHandlerHandle an event.- Specified by:
eventOccurredin interfaceFieldEventHandler<T extends CalculusFieldElement<T>>- 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
-