public class CustomDateDetector extends fr.cnes.sirius.patrius.propagation.events.DateDetector implements CustomEventDetector
Modifier and Type | Field and Description |
---|---|
static String |
DAT_DEC_STR
Coding message.
|
static String |
DAT_INC_STR
Coding message.
|
Constructor and Description |
---|
CustomDateDetector(fr.cnes.sirius.patrius.time.AbsoluteDate date)
Constructor with target date. maxCheck (1.0e10 s), threshold (1.0e-9 s) and action (STOP) by
default.
|
CustomDateDetector(fr.cnes.sirius.patrius.time.AbsoluteDate date,
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 detector for a given increasing and decreasing messages.
|
String |
toString() |
addEventDate, eventOccurred, g, getDate, shouldBeRemoved
getMaxCheckInterval, getMaxIterationCount, getSlopeSelection, getThreshold, init, resetState
public static final String DAT_INC_STR
public static final String DAT_DEC_STR
public CustomDateDetector(fr.cnes.sirius.patrius.time.AbsoluteDate date)
date
- target date.public CustomDateDetector(fr.cnes.sirius.patrius.time.AbsoluteDate date, double maxCheck, double threshold, fr.cnes.sirius.patrius.propagation.events.EventDetector.Action action)
date
- target date.maxCheck
- maximum checking interval (s).threshold
- convergence threshold (s).action
- action to be performed in case of event detection.public fr.cnes.sirius.patrius.propagation.events.EventDetector.Action getAction()
getAction
in interface CustomEventDetector
getAction
in class fr.cnes.sirius.patrius.propagation.events.DateDetector
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 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.DateDetector
public String getCodeInc()
getCodeInc
in interface CustomEventDetector
public String getCodeDec()
getCodeDec
in interface CustomEventDetector
Copyright © 2018. All rights reserved.