<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://patrius.cnes.fr/index.php?action=history&amp;feed=atom&amp;title=Tutorials_4.5.1_Events</id>
	<title>Tutorials 4.5.1 Events - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="https://patrius.cnes.fr/index.php?action=history&amp;feed=atom&amp;title=Tutorials_4.5.1_Events"/>
	<link rel="alternate" type="text/html" href="https://patrius.cnes.fr/index.php?title=Tutorials_4.5.1_Events&amp;action=history"/>
	<updated>2026-04-13T08:27:49Z</updated>
	<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://patrius.cnes.fr/index.php?title=Tutorials_4.5.1_Events&amp;diff=2668&amp;oldid=prev</id>
		<title>Admin : Page créée avec « == What is an Event ? ==  An [{{JavaDoc4.5.1}}/fr/cnes/sirius/patrius/propagation/events/EventDetector.html EventDetector] corresponds to an object that will allow to a pr... »</title>
		<link rel="alternate" type="text/html" href="https://patrius.cnes.fr/index.php?title=Tutorials_4.5.1_Events&amp;diff=2668&amp;oldid=prev"/>
		<updated>2020-08-17T08:48:00Z</updated>

		<summary type="html">&lt;p&gt;Page créée avec « == What is an Event ? ==  An [{{JavaDoc4.5.1}}/fr/cnes/sirius/patrius/propagation/events/EventDetector.html EventDetector] corresponds to an object that will allow to a pr... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== What is an Event ? ==&lt;br /&gt;
&lt;br /&gt;
An [{{JavaDoc4.5.1}}/fr/cnes/sirius/patrius/propagation/events/EventDetector.html EventDetector] corresponds to an object that will allow to a propagator to determine when this event will occurred.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=#556B2F&amp;gt;&amp;#039;&amp;#039;&amp;#039;PATRIUS&amp;#039;&amp;#039;&amp;#039;&amp;lt;/font&amp;gt; will already propose a great amount of predefined events (anomaly, &amp;lt;font color=#FF8C00 title=&amp;quot;Argument Of Latitude&amp;quot;&amp;gt;AOL&amp;lt;/font&amp;gt;, altitude, eclipse, ...). These events may be called with &amp;quot;by default&amp;quot; values or may be customized by defining:&lt;br /&gt;
* its maximum check interval (in seconds)&lt;br /&gt;
* the threshold value below which the convergence is acquired (in seconds)&lt;br /&gt;
* the fact that the event will be checked several time or not.&lt;br /&gt;
&lt;br /&gt;
The following code example shows how to define an anomaly detector with all these possibilities.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Code example:&amp;#039;&amp;#039;&amp;#039; [[AnomalyEvent_4.5.1|Anomaly event detector]]&lt;br /&gt;
&lt;br /&gt;
== Using AbstractDetector class ==&lt;br /&gt;
&lt;br /&gt;
If you have not found a predefined event detector into the &amp;lt;font color=#556B2F&amp;gt;&amp;#039;&amp;#039;&amp;#039;PATRIUS&amp;#039;&amp;#039;&amp;#039;&amp;lt;/font&amp;gt; list, you can build yourself you own detector using the [{{JavaDoc4.5.1}}/fr/cnes/sirius/patrius/propagation/events/AbstractDetector.html AbstractDetector] class.&lt;br /&gt;
&lt;br /&gt;
In such a case, you will have to redefined:&lt;br /&gt;
* &amp;lt;font color=#4169E1&amp;gt;eventOccurred()&amp;lt;/font&amp;gt; method ; when the event has occured, this method will be called by the propagator and will return the appropriate action&lt;br /&gt;
* &amp;lt;font color=#4169E1&amp;gt;g()&amp;lt;/font&amp;gt; method ; this method will return a double value which trigger the event when it will reach zero (+/- the threshold)&lt;br /&gt;
* &amp;lt;font color=#4169E1&amp;gt;shouldBeRemoved()&amp;lt;/font&amp;gt; method&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Code example:&amp;#039;&amp;#039;&amp;#039; [[EventUsingAbstractDetector_4.5.1|Event using AbstractDetector class]]&lt;br /&gt;
&lt;br /&gt;
== Using EventDetector interface ==&lt;br /&gt;
&lt;br /&gt;
if you want to customize deeper your event detector, rather than to use AbstractDetector class, you may use EventDetector interface.&lt;br /&gt;
&lt;br /&gt;
In such a case, you will have to redefined:&lt;br /&gt;
* &amp;lt;font color=#4169E1&amp;gt;eventOccurred()&amp;lt;/font&amp;gt; method ; when the event has occured, this method will be called by the propagator and will return the appropriate action&lt;br /&gt;
* &amp;lt;font color=#4169E1&amp;gt;getMaxCheckInterval()&amp;lt;/font&amp;gt; method ; this method will return a double value which trigger the event when it will reach zero (+/- the threshold)&lt;br /&gt;
* &amp;lt;font color=#4169E1&amp;gt;getMaxIterationCount()&amp;lt;/font&amp;gt; method&lt;br /&gt;
* &amp;lt;font color=#4169E1&amp;gt;getSlopeSelection()&amp;lt;/font&amp;gt; method&lt;br /&gt;
* &amp;lt;font color=#4169E1&amp;gt;getThreshold()&amp;lt;/font&amp;gt; method&lt;br /&gt;
* &amp;lt;font color=#4169E1&amp;gt;init()&amp;lt;/font&amp;gt; method&lt;br /&gt;
* &amp;lt;font color=#4169E1&amp;gt;resetState()&amp;lt;/font&amp;gt; method&lt;br /&gt;
* &amp;lt;font color=#4169E1&amp;gt;shouldBeRemoved()&amp;lt;/font&amp;gt; method&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Code example:&amp;#039;&amp;#039;&amp;#039; [[EventUsingEventDetector_4.5.1|Event using EventDetector interface]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Tutorials 4.5.1]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>