public final class DotProductPassageDetector extends AbstractDetector
AbstractDetector.PropagationDelayType
EventDetector.Action
actionAtEntry, actionAtExit, DEFAULT_MAXCHECK, DEFAULT_THRESHOLD, removeAtEntry, removeAtExit, shouldBeRemovedFlag
DECREASING, INCREASING, INCREASING_DECREASING
Constructor and Description |
---|
DotProductPassageDetector(PVCoordinatesProvider target,
boolean normalizePos,
boolean normalizeTarget,
double dotProduct,
Frame projectionFrame,
int slopeSelectionIn)
Constructor for an DotProductPassageDetector instance.
|
DotProductPassageDetector(PVCoordinatesProvider target,
boolean normalizePos,
boolean normalizeTarget,
double dotProduct,
Frame projectionFrame,
int slopeSelectionIn,
double maxCheck,
double threshold)
Constructor for an DotProductPassageDetector instance with complementary parameters.
|
DotProductPassageDetector(PVCoordinatesProvider target,
boolean normalizePos,
boolean normalizeTarget,
double dotProduct,
Frame projectionFrame,
int slopeSelectionIn,
double maxCheck,
double threshold,
EventDetector.Action ascending,
EventDetector.Action descending)
Constructor for an DotProductPassageDetector instance with complementary parameters.
|
Modifier and Type | Method and Description |
---|---|
EventDetector |
copy()
A copy of the detector.
|
EventDetector.Action |
eventOccurred(SpacecraftState s,
boolean increasing,
boolean forward)
Handle an angular momentum excess event and choose what to do next.
|
double |
g(SpacecraftState s)
Compute the value of the switching function.
|
getActionAtEntry, getActionAtExit, getInertialFrame, getMaxCheckInterval, getMaxIterationCount, getPropagationDelayType, getSignalEmissionDate, getSignalReceptionDate, getSlopeSelection, getThreshold, init, isRemoveAtEntry, isRemoveAtExit, logEventsOverTimeInterval, resetState, setEpsilonSignalPropagation, setMaxCheckInterval, setMaxIterSignalPropagation, setPropagationDelayType, shouldBeRemoved
public DotProductPassageDetector(PVCoordinatesProvider target, boolean normalizePos, boolean normalizeTarget, double dotProduct, Frame projectionFrame, int slopeSelectionIn)
target
- second coordinates provider.normalizePos
- first coordinates normalize.normalizeTarget
- second coordinates normalize.dotProduct
- threshold value of the dot productprojectionFrame
- frame with respect to which the vectors are projectedslopeSelectionIn
- g-function slope selection (0, 1, or 2)public DotProductPassageDetector(PVCoordinatesProvider target, boolean normalizePos, boolean normalizeTarget, double dotProduct, Frame projectionFrame, int slopeSelectionIn, double maxCheck, double threshold)
target
- second coordinates provider.normalizePos
- first coordinates normalize.normalizeTarget
- second coordinates normalize.dotProduct
- threshold value of the dot productprojectionFrame
- frame with respect to which the vectors are projectedslopeSelectionIn
- g-function slope selection (0, 1, or 2)maxCheck
- maximum check (see AbstractDetector
)threshold
- threshold (see AbstractDetector
)public DotProductPassageDetector(PVCoordinatesProvider target, boolean normalizePos, boolean normalizeTarget, double dotProduct, Frame projectionFrame, int slopeSelectionIn, double maxCheck, double threshold, EventDetector.Action ascending, EventDetector.Action descending)
target
- second coordinates provider.normalizePos
- first coordinates normalize.normalizeTarget
- second coordinates normalize.dotProduct
- threshold value of the dot productprojectionFrame
- frame with respect to which the vectors are projectedmaxCheck
- maximum check (see AbstractDetector
)threshold
- threshold (see AbstractDetector
)slopeSelectionIn
- g-function slope selection (0, 1, or 2)ascending
- action performed when ascendingdescending
- action performed when descendingpublic final EventDetector.Action eventOccurred(SpacecraftState s, boolean increasing, boolean forward) throws PatriusException
eventOccurred
in interface EventDetector
eventOccurred
in class AbstractDetector
s
- the current state information : date, kinematics, attitudeincreasing
- if true, the value of the switching function increases when times increases around
eventforward
- if true, the integration variable (time) increases during integration.PatriusException
- if some specific error occurspublic final double g(SpacecraftState s) throws PatriusException
g
in interface EventDetector
g
in class AbstractDetector
s
- the current state information: date, kinematics, attitude for forces and events
computation, mass provider, and additional statesPatriusException
- if some specific error occurspublic EventDetector copy()
Copyright © 2023 CNES. All rights reserved.