/** Java class "Gerant.java" generated from Poseidon for UML. * Poseidon for UML is developed by Gentleware. * Generated with velocity template engine. */ package Pack_adherents; import java.util.*; /** *

* *

*/ class Gerant { /////////////////////////////////////// // attributes /** *

* *

*/ public static Collection adherent = new Vector(); /////////////////////////////////////// // operations /** *

* Does ... *

* *

* * * * @param args ... *

*/ public static void main(String[] args) { Adherent a1=new Adherent(1,"Dupont","Paris",1980); addAdherent(a1); Adherent a2=new Adherent(2,"Meyer","Strasbourg",1955); addAdherent(a2); Adherent a3=new Adherent(3,"Legwenn","Brest",1960); addAdherent(a3); for (int i=0;i * Does ... *

* * @return a Collection with ... *

*/ public static Collection getAdherents() { return adherent; } // end getAdherents /** *

* Does ... *

* *

* * @param adherent ... *

*/ public static void addAdherent(Adherent adherent) { if (! Gerant.adherent.contains(adherent)) Gerant.adherent.add(adherent); } // end addAdherent /** *

* Does ... *

* *

* * @param adherent ... *

*/ public static void removeAdherent(Adherent adherent) { Gerant.adherent.remove(adherent); } // end removeAdherent } // end Gerant