<divclass="inheritance"title="Inheritance Tree"><ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">java.lang.Object</a>
<dd><code><ahref="../API/AbstractChangementFactory.html"title="interface in API">AbstractChangementFactory</a></code></dd>
</dl>
<hr>
<divclass="type-signature"><spanclass="modifiers">public class </span><spanclass="element-name type-name-label">AbstractChangementFactoryNP</span>
<spanclass="extends-implements">extends <ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a>
implements <ahref="../API/AbstractChangementFactory.html"title="interface in API">AbstractChangementFactory</a></span></div>
<divclass="block">Usine abstraite gérant l'ensemble des changements.</div>
<divclass="col-constructor-name even-row-color"><code><ahref="#%3Cinit%3E(API.AbstractGroupeFactory)"class="member-name-link">AbstractChangementFactoryNP</a><wbr>(<ahref="../API/AbstractGroupeFactory.html"title="interface in API">AbstractGroupeFactory</a> agf)</code></div>
<divclass="block">permet de supprimer un changement connu de l'usine abstraite.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/util/Set.html"title="class or interface in java.util"class="external-link">Set</a><<ahref="../API/Changement.html"title="interface in API">Changement</a>></code></div>
<divclass="block">permet de récupérer l'usine abstraite pour les groupes qui fonctionne en tandem avec cette usine abstraite</div>
</div>
</div>
</div>
</div>
<divclass="inherited-list">
<h3id="methods-inherited-from-class-java.lang.Object">Methods inherited from class java.lang.<ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></h3>
<code><ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/Object.html#clone()"title="class or interface in java.lang"class="external-link">clone</a>, <ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"title="class or interface in java.lang"class="external-link">equals</a>, <ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/Object.html#finalize()"title="class or interface in java.lang"class="external-link">finalize</a>, <ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/Object.html#getClass()"title="class or interface in java.lang"class="external-link">getClass</a>, <ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/Object.html#hashCode()"title="class or interface in java.lang"class="external-link">hashCode</a>, <ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/Object.html#notify()"title="class or interface in java.lang"class="external-link">notify</a>, <ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/Object.html#notifyAll()"title="class or interface in java.lang"class="external-link">notifyAll</a>, <ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/Object.html#toString()"title="class or interface in java.lang"class="external-link">toString</a>, <ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/Object.html#wait()"title="class or interface in java.lang"class="external-link">wait</a>, <ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/Object.html#wait(long)"title="class or interface in java.lang"class="external-link">wait</a>, <ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/Object.html#wait(long,int)"title="class or interface in java.lang"class="external-link">wait</a></code></div>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="element-name">AbstractChangementFactoryNP</span><wbr><spanclass="parameters">(<ahref="../API/AbstractGroupeFactory.html"title="interface in API">AbstractGroupeFactory</a> agf)</span></div>
</section>
</li>
</ul>
</section>
</li>
<!-- ============ METHOD DETAIL ========== -->
<li>
<sectionclass="method-details"id="method-detail">
<h2>Method Details</h2>
<ulclass="member-list">
<li>
<sectionclass="detail"id="getGroupeFactory()">
<h3>getGroupeFactory</h3>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="../API/AbstractGroupeFactory.html"title="interface in API">AbstractGroupeFactory</a></span> <spanclass="element-name">getGroupeFactory</span>()</div>
<divclass="block">permet de récupérer l'usine abstraite pour les groupes qui fonctionne en tandem avec cette usine abstraite</div>
<dlclass="notes">
<dt>Specified by:</dt>
<dd><code><ahref="../API/AbstractChangementFactory.html#getGroupeFactory()">getGroupeFactory</a></code> in interface <code><ahref="../API/AbstractChangementFactory.html"title="interface in API">AbstractChangementFactory</a></code></dd>
<dt>Returns:</dt>
<dd>cette usine abstraite pour les groupes</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getAllChangements()">
<h3>getAllChangements</h3>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/util/Set.html"title="class or interface in java.util"class="external-link">Set</a><<ahref="../API/Changement.html"title="interface in API">Changement</a>></span> <spanclass="element-name">getAllChangements</span>()</div>
<divclass="block">permet de récupérer les changements</div>
<dlclass="notes">
<dt>Specified by:</dt>
<dd><code><ahref="../API/AbstractChangementFactory.html#getAllChangements()">getAllChangements</a></code> in interface <code><ahref="../API/AbstractChangementFactory.html"title="interface in API">AbstractChangementFactory</a></code></dd>
<dt>Returns:</dt>
<dd>l'ensemble de tous les changements en attente</dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">void</span> <spanclass="element-name">applyChangement</span><wbr><spanclass="parameters">(<ahref="../API/Changement.html"title="interface in API">Changement</a> c)</span></div>
<divclass="block">permet de mettre en oeuvre un changement connu de l'usine abstraite.</div>
<dlclass="notes">
<dt>Specified by:</dt>
<dd><code><ahref="../API/AbstractChangementFactory.html#applyChangement(API.Changement)">applyChangement</a></code> in interface <code><ahref="../API/AbstractChangementFactory.html"title="interface in API">AbstractChangementFactory</a></code></dd>
<dt>Throws:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/NullPointerException.html"title="class or interface in java.lang"class="external-link">NullPointerException</a></code> - si un argument est null</dd>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/IllegalStateException.html"title="class or interface in java.lang"class="external-link">IllegalStateException</a></code> - si le changement n'a pas de sens en l'état actuel (e.g. étudiant pas dans le groupe de départ a, groupe b inconnu, groupe a inconnu, etc).</dd>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/IllegalArgumentException.html"title="class or interface in java.lang"class="external-link">IllegalArgumentException</a></code> - si inconnu de l'usine abstraite</dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">void</span> <spanclass="element-name">deleteChangement</span><wbr><spanclass="parameters">(<ahref="../API/Changement.html"title="interface in API">Changement</a> c)</span></div>
<divclass="block">permet de supprimer un changement connu de l'usine abstraite.</div>
<dlclass="notes">
<dt>Specified by:</dt>
<dd><code><ahref="../API/AbstractChangementFactory.html#deleteChangement(API.Changement)">deleteChangement</a></code> in interface <code><ahref="../API/AbstractChangementFactory.html"title="interface in API">AbstractChangementFactory</a></code></dd>
<dt>Throws:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/NullPointerException.html"title="class or interface in java.lang"class="external-link">NullPointerException</a></code> - si un argument est null</dd>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/IllegalArgumentException.html"title="class or interface in java.lang"class="external-link">IllegalArgumentException</a></code> - si inconnu de l'usine abstraite</dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">void</span> <spanclass="element-name">createChangement</span><wbr><spanclass="parameters">(<ahref="../API/Groupe.html"title="interface in API">Groupe</a> A,
<ahref="../API/Etudiant.html"title="interface in API">Etudiant</a> e,
<ahref="../API/Groupe.html"title="interface in API">Groupe</a> B)</span></div>
<divclass="block">permet d'ajouter un nouveau changement.</div>
<dlclass="notes">
<dt>Specified by:</dt>
<dd><code><ahref="../API/AbstractChangementFactory.html#createChangement(API.Groupe,API.Etudiant,API.Groupe)">createChangement</a></code> in interface <code><ahref="../API/AbstractChangementFactory.html"title="interface in API">AbstractChangementFactory</a></code></dd>
<dt>Parameters:</dt>
<dd><code>A</code> - groupe actuel</dd>
<dd><code>B</code> - groupe demandé</dd>
<dd><code>e</code> - étudiant concerné par le changement</dd>
<dt>Throws:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/NullPointerException.html"title="class or interface in java.lang"class="external-link">NullPointerException</a></code> - si un argument est null</dd>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/IllegalArgumentException.html"title="class or interface in java.lang"class="external-link">IllegalArgumentException</a></code> - si les groupes ou l'étudiant ne sont pas connus de la factory partenaire, ou e n'appartient pas à A ou A et B ne sont pas frères dans l'arbre des groupes.</dd>