|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.orekit.propagation.events.AbstractDetector
fr.cnes.sirius.patrius.events.CombinedPhenomenaDetector
public class CombinedPhenomenaDetector
This class finds the events resulting from the combination of two phenomena.
Combinations of phenomena can be done using the following boolean operators:
The default implementation behaviour is to
continue
propagation when combined phnomena are detected. This can be changed by using one of the provided constructors.
EventDetector,
Propagator.addEventDetector(EventDetector),
Serialized Form| Nested 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 | |
|---|---|
CombinedPhenomenaDetector(EventDetector d1,
boolean d1IncreasingIsStart,
EventDetector d2,
boolean d2IncreasingIsStart,
boolean togetherIn)
Constructor for the detector of the combination of two phenomena. |
|
CombinedPhenomenaDetector(EventDetector d1,
boolean d1IncreasingIsStart,
EventDetector d2,
boolean d2IncreasingIsStart,
boolean togetherIn,
EventDetector.Action action)
Constructor for the detector of the combination of two phenomena. |
|
| Method Summary | |
|---|---|
EventDetector.Action |
eventOccurred(SpacecraftState s,
boolean increasing,
boolean forward)
Handle an event and choose what to do next. |
double |
g(SpacecraftState s)
Compute the value of the switching function for a combination (AND or OR) of two phenomena. After computing the switching function of each detector and, if necessary, changing its sign to apply a general convention (g>0 if the phenomenon associated to an event is active), it returns one between the two g functions, according to the boolean operator. |
EventDetector |
getDetector1()
Returns first detector. |
EventDetector |
getDetector2()
Returns second detector. |
void |
init(SpacecraftState s0,
AbsoluteDate t)
Initialize event handler at the start of a propagation. |
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, resetState |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CombinedPhenomenaDetector(EventDetector d1,
boolean d1IncreasingIsStart,
EventDetector d2,
boolean d2IncreasingIsStart,
boolean togetherIn)
d1 - the first EventDetectord1IncreasingIsStart - true if increasing of the g function of the the first EventDetector
represents the "beginning" of the associated phenomenond2 - the second EventDetectord2IncreasingIsStart - true if increasing of the g function of the the second EventDetector
represents the "beginning" of the associated phenomenontogetherIn - true if AND, false if OR
public CombinedPhenomenaDetector(EventDetector d1,
boolean d1IncreasingIsStart,
EventDetector d2,
boolean d2IncreasingIsStart,
boolean togetherIn,
EventDetector.Action action)
d1 - the first EventDetectord1IncreasingIsStart - true if increasing of the g function of the the first EventDetector
represents the "beginning" of the associated phenomenond2 - the second EventDetectord2IncreasingIsStart - true if increasing of the g function of the the second EventDetector
represents the "beginning" of the associated phenomenontogetherIn - true if AND, false if ORaction - action performed at combined Phenomena detection| Method Detail |
|---|
public final double g(SpacecraftState s)
throws OrekitException
g in interface EventDetectorg in class AbstractDetectors - the SpacecraftState that contains the current state information
OrekitException - if some specific error occurs
public EventDetector.Action eventOccurred(SpacecraftState s,
boolean increasing,
boolean forward)
throws OrekitException
eventOccurred in interface EventDetectoreventOccurred in class AbstractDetectors - the SpacecraftState that contains the current state informationincreasing - 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 boolean shouldBeRemoved()
AbstractDetectorEventDetector.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 EventDetectorshouldBeRemoved in class AbstractDetector
public void init(SpacecraftState s0,
AbsoluteDate t)
AbstractDetectorThis method is called once at the start of the propagation. It may be used by the event handler to initialize some internal data if needed.
init in interface EventDetectorinit in class AbstractDetectors0 - initial statet - target time for the integrationpublic EventDetector getDetector1()
public EventDetector getDetector2()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||