|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 overriding the
eventOccurred method in a
derived class.
Propagator.addEventDetector(EventDetector),
Serialized Form| Field Summary |
|---|
| Fields inherited from class org.orekit.propagation.events.AbstractDetector |
|---|
DEFAULT_MAXCHECK, DEFAULT_THRESHOLD |
| Fields inherited from interface org.orekit.propagation.events.EventDetector |
|---|
CONTINUE, RESET_DERIVATIVES, RESET_STATE, STOP |
| Constructor Summary | |
|---|---|
AlignmentDetector(double threshold,
Orbit orbit,
PVCoordinatesProvider body,
double alignAngle)
Build a new alignment detector. |
|
AlignmentDetector(Orbit orbit,
PVCoordinatesProvider body,
double alignAngle)
Build a new alignment detector. |
|
| Method Summary | |
|---|---|
int |
eventOccurred(SpacecraftState s,
boolean increasing)
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. |
| Methods inherited from class org.orekit.propagation.events.AbstractDetector |
|---|
getMaxCheckInterval, getMaxIterationCount, getThreshold, 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.
orbit - initial orbitbody - the body to alignalignAngle - the alignment angle (rad)
public AlignmentDetector(double threshold,
Orbit orbit,
PVCoordinatesProvider body,
double alignAngle)
The orbit is used only to set an upper bound for the max check interval to period/3.
threshold - convergence threshold (s)orbit - initial orbitbody - the body to alignalignAngle - the alignment angle (rad)| Method Detail |
|---|
public PVCoordinatesProvider getPVCoordinatesProvider()
public double getAlignAngle()
public int eventOccurred(SpacecraftState s,
boolean increasing)
throws OrekitException
The default implementation behavior is to stop propagation
when alignment is reached.
eventOccurred in interface EventDetectoreventOccurred in class AbstractDetectors - the current state information : date, kinematics, attitudeincreasing - if true, the value of the switching function increases
when times increases around event.
EventDetector.STOP or EventDetector.CONTINUE
OrekitException - if some specific error occurs
public double g(SpacecraftState s)
throws OrekitException
g in interface EventDetectorg in class AbstractDetectors - 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 | |||||||||