1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
| /**
*@date 24 octobre 2015
*Programme qui affiche les informations sur les deputés, les partis et les circonscriptions
*/
public class Election {
//attribut Election
String collectionDesNomDeCirconscription;
String collectionDesNomDePartis;
String collectionDesNomDeDepute;
String collectionDeputePrecedent ;
String collectionCirconscriptionPrecedent ;
int [][] tab2D = new int [][] ;
/**Le constructeur Election avec son argument année
et qui crée les instances des collections vide**/
public Election(int annee){
}
/**La methode qui ajoute la circoscription si elle n'existe pas dans la collection
* associée et retiens la position ou il à été ajouté**/
public int ajouterCirconscription(String Nom, int numero){
}
/**La methode qui ajoute le nom du parti s'il n'existe pas dans la collection associée
et reoutrne la position sur la quelle elle a été ajouté ou elle a été trouvé dans la collection **/
public int ajouterNomParti(String nomParti){
}
/**La methode qui ajoute le nom du deputé s'il n'existe pas dans la collection associée
et cree un objet de la class Depute pour retenir le numero de circonscription
et le numero du parti que nous ajoutons à la collection de Deputé pas besoin de retourner de position **/
public void ajouterDepute(String circonscription, String nomDepute, int noParti){
}
/*Les metodes qui obtiennent et retournent les tableaux statiques équivalents à la collection associée*/
private String[] obtenirNomsCirconscription(){
}
private String[] obtenirNomsParti(){
}
private String[] obtenirNomsDepute(){
}
public static void main(String args[]){
String nomParti = ficText.next();
int noParti = ajouterNomParti(nomParti);
}
}
========================================Class Deputé=============================
/**
*Un programme qui gère la liste des deputé
*/
public class Depute {
private int numeroCase ;
private int numeroParti;
//Constructeur
public Depute(){
}
//les getters et setters
public void get(){
}
public void set(){
}
}
=======================Class Circoncription========================
/**
*
*/
/**
* @author AmadouW8
*
*/
public class Circonscription {
private int numeroCirconscription;
private String NomCisrconscrition;
private int numeroCaseDeputeElu;
} |
Partager