public class CustomEclipseDetector extends fr.cnes.sirius.patrius.propagation.events.EclipseDetector implements CustomEventDetector
Modifier and Type | Field and Description |
---|---|
static String |
ECL_DEC_STR
Coding message.
|
static String |
ECL_INC_STR
Coding message.
|
ENTRY, ENTRY_EXIT, EXIT
Constructor and Description |
---|
CustomEclipseDetector(int slopeSelection,
double occultingBodyRadius)
Constructor with target eclipse and trigger. maxCheck (600 s), threshold (1.0e-6 s) and
action (RESET_STATE) by default.
|
CustomEclipseDetector(int slopeSelection,
double occultingBodyRadius,
double maxCheck,
double threshold,
fr.cnes.sirius.patrius.propagation.events.EventDetector.Action action)
Constructor with complete data.
|
Modifier and Type | Method and Description |
---|---|
fr.cnes.sirius.patrius.propagation.events.EventDetector |
copy() |
fr.cnes.sirius.patrius.propagation.events.EventDetector.Action |
getAction()
Getter for the action to be performed in case of event detection.
|
String |
getCodeDec()
Returns code on decreasing.
|
String |
getCodeInc()
Returns code on increasing.
|
fr.cnes.sirius.patrius.events.CodingEventDetector |
getCodingEventDetector(String incEventString,
String decEventString)
Get the generic coding event detectors for a given increasing and decreasing messages.
|
double |
getOccultingBodyRadius()
Getter for the occulting body radius (the Earth).
|
fr.cnes.sirius.patrius.propagation.SpacecraftState |
resetState(fr.cnes.sirius.patrius.propagation.SpacecraftState oldState) |
String |
toString() |
eventOccurred, g, getOcculted, getOccultedDirection, getOccultedRadius, getOcculting, getOccultingRadiusProvider, isInEclipse, isTotalEclipse, setPropagationDelayType
getActionAtEntry, getActionAtExit, getInertialFrame, getMaxCheckInterval, getMaxIterationCount, getPropagationDelayType, getSignalEmissionDate, getSignalReceptionDate, getSlopeSelection, getThreshold, init, isRemoveAtEntry, isRemoveAtExit, logEventsOverTimeInterval, setEpsilonSignalPropagation, setMaxCheckInterval, shouldBeRemoved
public static final String ECL_INC_STR
public static final String ECL_DEC_STR
public CustomEclipseDetector(int slopeSelection, double occultingBodyRadius) throws ArithmeticException
slopeSelection
- slope selectionoccultingBodyRadius
- the occulting body radius (m)ArithmeticException
- if occultingBodyRadius is NaN.public CustomEclipseDetector(int slopeSelection, double occultingBodyRadius, double maxCheck, double threshold, fr.cnes.sirius.patrius.propagation.events.EventDetector.Action action) throws ArithmeticException
slopeSelection
- slope selectionoccultingBodyRadius
- the occulting body radius (m)maxCheck
- maximum checking interval (s).threshold
- convergence threshold (s).action
- action to be performed in case of event detection.ArithmeticException
- if occultingBodyRadius is NaN.public double getOccultingBodyRadius()
public fr.cnes.sirius.patrius.propagation.events.EventDetector.Action getAction()
getAction
in interface CustomEventDetector
public fr.cnes.sirius.patrius.propagation.SpacecraftState resetState(fr.cnes.sirius.patrius.propagation.SpacecraftState oldState)
resetState
in interface fr.cnes.sirius.patrius.propagation.events.EventDetector
resetState
in class fr.cnes.sirius.patrius.propagation.events.AbstractDetector
public fr.cnes.sirius.patrius.propagation.events.EventDetector copy()
copy
in interface fr.cnes.sirius.patrius.propagation.events.EventDetector
copy
in class fr.cnes.sirius.patrius.propagation.events.EclipseDetector
public fr.cnes.sirius.patrius.events.CodingEventDetector getCodingEventDetector(String incEventString, String decEventString)
getCodingEventDetector
in interface CustomEventDetector
incEventString
- message for the log when the detector is triggered with increasing g
functiondecEventString
- message for the log when the detector is triggered with decreasing g
functionpublic String getCodeInc()
getCodeInc
in interface CustomEventDetector
public String getCodeDec()
getCodeDec
in interface CustomEventDetector
Copyright © 2023. All rights reserved.