|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.orekit.propagation.events.AbstractDetector org.orekit.propagation.events.AlignmentDetector
public class AlignmentDetector
Finder for satellite/body alignment events.
This class finds alignment events.
Alignment means the conjunction, with some threshold angle, between the satellite position and the projection in the orbital plane of some body position.
The default implementation behavior is to stop
propagation when
alignment is reached. This can be changed by using provided constructors.
Propagator.addEventDetector(EventDetector)
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from interface org.orekit.propagation.events.EventDetector |
---|
EventDetector.Action |
Field Summary |
---|
Fields inherited from class org.orekit.propagation.events.AbstractDetector |
---|
DEFAULT_MAXCHECK, DEFAULT_THRESHOLD |
Fields inherited from interface org.orekit.propagation.events.EventDetector |
---|
DECREASING, INCREASING, INCREASING_DECREASING |
Constructor Summary | |
---|---|
AlignmentDetector(Orbit orbit,
PVCoordinatesProvider body,
double alignAngle)
Build a new alignment detector. |
|
AlignmentDetector(Orbit orbit,
PVCoordinatesProvider body,
double alignAngle,
double threshold)
Build a new alignment detector. |
|
AlignmentDetector(Orbit orbit,
PVCoordinatesProvider body,
double alignAngle,
double threshold,
EventDetector.Action actionStart,
EventDetector.Action actionEnd)
Build a new alignment detector. |
|
AlignmentDetector(Orbit orbit,
PVCoordinatesProvider body,
double alignAngle,
double threshold,
EventDetector.Action actionStart,
EventDetector.Action actionEnd,
boolean removeStart,
boolean removeEnd)
Build a new alignment detector. |
Method Summary | |
---|---|
EventDetector.Action |
eventOccurred(SpacecraftState s,
boolean increasing,
boolean forward)
Handle an alignment event and choose what to do next. |
double |
g(SpacecraftState s)
Compute the value of the switching function. |
double |
getAlignAngle()
Get the alignment angle (rad). |
PVCoordinatesProvider |
getPVCoordinatesProvider()
Get the body to align. |
boolean |
shouldBeRemoved()
This method is called after EventDetector.eventOccurred(org.orekit.propagation.SpacecraftState, boolean, boolean) has been triggered. |
Methods inherited from class org.orekit.propagation.events.AbstractDetector |
---|
getMaxCheckInterval, getMaxIterationCount, getSlopeSelection, getThreshold, init, resetState |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AlignmentDetector(Orbit orbit, PVCoordinatesProvider body, double alignAngle)
The orbit is used only to set an upper bound for the max check interval to period/3 and to set the convergence threshold according to orbit size.
The default behavior is to stop
propagation when the expected alignment is reached.
orbit
- initial orbitbody
- the body to alignalignAngle
- the alignment angle (rad)public AlignmentDetector(Orbit orbit, PVCoordinatesProvider body, double alignAngle, double threshold)
The orbit is used only to set an upper bound for the max check interval to period/3.
The default behavior is to stop
propagation when the expected alignment is reached.
orbit
- initial orbitbody
- the body to alignalignAngle
- the alignment angle (rad)threshold
- convergence threshold (s)public AlignmentDetector(Orbit orbit, PVCoordinatesProvider body, double alignAngle, double threshold, EventDetector.Action actionStart, EventDetector.Action actionEnd)
The orbit is used only to set an upper bound for the max check interval to period/3.
orbit
- initial orbitbody
- the body to alignalignAngle
- the alignment angle (rad)threshold
- convergence threshold (s)actionStart
- action performed when the alignment startactionEnd
- action performed when the alignment endpublic AlignmentDetector(Orbit orbit, PVCoordinatesProvider body, double alignAngle, double threshold, EventDetector.Action actionStart, EventDetector.Action actionEnd, boolean removeStart, boolean removeEnd)
The orbit is used only to set an upper bound for the max check interval to period/3.
orbit
- initial orbitbody
- the body to alignalignAngle
- the alignment angle (rad)threshold
- convergence threshold (s)actionStart
- action performed when the alignment startactionEnd
- action performed when the alignment endremoveStart
- true if detector should be removed when the alignment startremoveEnd
- true if detector should be removed when the alignment endMethod Detail |
---|
public PVCoordinatesProvider getPVCoordinatesProvider()
public double getAlignAngle()
public boolean shouldBeRemoved()
EventDetector.eventOccurred(org.orekit.propagation.SpacecraftState, boolean, boolean)
has been triggered.
It returns true if the current detector should be removed after first event detection.
WARNING: this method can be called only once a event has been triggered. Before,
the value is not available.
shouldBeRemoved
in interface EventDetector
shouldBeRemoved
in class AbstractDetector
public EventDetector.Action eventOccurred(SpacecraftState s, boolean increasing, boolean forward) throws OrekitException
The default implementation behavior is to stop
propagation
when alignment is reached.
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.
OrekitException
- if some specific error occurspublic double g(SpacecraftState s) throws OrekitException
g
in interface EventDetector
g
in class AbstractDetector
s
- the current state information: date, kinematics, attitude
OrekitException
- if some specific error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |