Pārlūkot izejas kodu

avancées javadoc6

PCYoshi 9 gadus atpakaļ
vecāks
revīzija
75da24ba41

+ 65
- 66
java/.idea/workspace.xml Parādīt failu

@@ -7,6 +7,7 @@
7 7
   </component>
8 8
   <component name="ChangeListManager">
9 9
     <list default="true" id="a647cb6a-4230-4101-a652-d7cfd0c21e24" name="Default" comment="">
10
+      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/src/Modele/package-info.java" />
10 11
       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/out/production/java/GestionErreurs/BDDException.class" afterPath="$PROJECT_DIR$/out/production/java/GestionErreurs/BDDException.class" />
11 12
       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/out/production/java/InterfaceGraphique/Bouton.class" afterPath="$PROJECT_DIR$/out/production/java/InterfaceGraphique/Bouton.class" />
12 13
       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/out/production/java/GestionBddDAO/ConfigBDD.class" afterPath="$PROJECT_DIR$/out/production/java/GestionBddDAO/ConfigBDD.class" />
@@ -18,10 +19,8 @@
18 19
       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/out/production/java/InterfaceGraphique/DialogBoxes/NouvelleQuestionDialog.class" afterPath="$PROJECT_DIR$/out/production/java/InterfaceGraphique/DialogBoxes/NouvelleQuestionDialog.class" />
19 20
       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/out/production/java/InterfaceGraphique/DialogBoxes/NouvelleReponseDialog.class" afterPath="$PROJECT_DIR$/out/production/java/InterfaceGraphique/DialogBoxes/NouvelleReponseDialog.class" />
20 21
       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/out/production/java/InterfaceGraphique/SplashScreen.class" afterPath="$PROJECT_DIR$/out/production/java/InterfaceGraphique/SplashScreen.class" />
21
-      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/InterfaceGraphique/Bouton.java" afterPath="$PROJECT_DIR$/src/InterfaceGraphique/Bouton.java" />
22
-      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/Modele/Categorie.java" afterPath="$PROJECT_DIR$/src/Modele/Categorie.java" />
23 22
       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/Modele/Question.java" afterPath="$PROJECT_DIR$/src/Modele/Question.java" />
24
-      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/InterfaceGraphique/SplashScreen.java" afterPath="$PROJECT_DIR$/src/InterfaceGraphique/SplashScreen.java" />
23
+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/Modele/Reponses.java" afterPath="$PROJECT_DIR$/src/Modele/Reponses.java" />
25 24
       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
26 25
     </list>
27 26
     <ignored path="java.iws" />
@@ -54,38 +53,11 @@
54 53
           </provider>
55 54
         </entry>
56 55
       </file>
57
-      <file leaf-file-name="Question.java" pinned="false" current-in-tab="true">
58
-        <entry file="file://$PROJECT_DIR$/src/Modele/Question.java">
56
+      <file leaf-file-name="package-info.java" pinned="false" current-in-tab="true">
57
+        <entry file="file://$PROJECT_DIR$/src/Modele/package-info.java">
59 58
           <provider selected="true" editor-type-id="text-editor">
60
-            <state vertical-scroll-proportion="0.09514926">
61
-              <caret line="4" column="17" selection-start-line="4" selection-start-column="17" selection-end-line="4" selection-end-column="17" />
62
-              <folding>
63
-                <element signature="e#439#440#0" expanded="true" />
64
-                <element signature="e#461#462#0" expanded="true" />
65
-                <element signature="e#506#507#0" expanded="true" />
66
-                <element signature="e#537#538#0" expanded="true" />
67
-                <element signature="e#569#570#0" expanded="true" />
68
-                <element signature="e#591#592#0" expanded="true" />
69
-                <element signature="e#636#637#0" expanded="true" />
70
-                <element signature="e#667#668#0" expanded="true" />
71
-                <element signature="e#699#700#0" expanded="true" />
72
-                <element signature="e#721#722#0" expanded="true" />
73
-                <element signature="e#766#767#0" expanded="true" />
74
-                <element signature="e#797#798#0" expanded="true" />
75
-                <element signature="e#825#826#0" expanded="true" />
76
-                <element signature="e#846#847#0" expanded="true" />
77
-                <element signature="e#886#887#0" expanded="true" />
78
-                <element signature="e#915#916#0" expanded="true" />
79
-              </folding>
80
-            </state>
81
-          </provider>
82
-        </entry>
83
-      </file>
84
-      <file leaf-file-name="Reponses.java" pinned="false" current-in-tab="false">
85
-        <entry file="file://$PROJECT_DIR$/src/Modele/Reponses.java">
86
-          <provider selected="true" editor-type-id="text-editor">
87
-            <state vertical-scroll-proportion="0.0">
88
-              <caret line="2" column="13" selection-start-line="2" selection-start-column="13" selection-end-line="2" selection-end-column="13" />
59
+            <state vertical-scroll-proportion="0.063432835">
60
+              <caret line="2" column="17" selection-start-line="2" selection-start-column="17" selection-end-line="2" selection-end-column="17" />
89 61
               <folding />
90 62
             </state>
91 63
           </provider>
@@ -147,6 +119,8 @@
147 119
         <option value="$PROJECT_DIR$/src/InterfaceGraphique/SplashScreen.java" />
148 120
         <option value="$PROJECT_DIR$/src/Modele/Categorie.java" />
149 121
         <option value="$PROJECT_DIR$/src/Modele/Question.java" />
122
+        <option value="$PROJECT_DIR$/src/Modele/Reponses.java" />
123
+        <option value="$PROJECT_DIR$/src/Modele/package-info.java" />
150 124
       </list>
151 125
     </option>
152 126
   </component>
@@ -774,7 +748,13 @@
774 748
       <option name="project" value="LOCAL" />
775 749
       <updated>1433973812842</updated>
776 750
     </task>
777
-    <option name="localTasksCounter" value="32" />
751
+    <task id="LOCAL-00032" summary="avancées javadoc5">
752
+      <created>1433975034387</created>
753
+      <option name="number" value="00032" />
754
+      <option name="project" value="LOCAL" />
755
+      <updated>1433975034387</updated>
756
+    </task>
757
+    <option name="localTasksCounter" value="33" />
778 758
     <servers />
779 759
   </component>
780 760
   <component name="TodoView">
@@ -827,7 +807,6 @@
827 807
     <option name="myLimit" value="2678400000" />
828 808
   </component>
829 809
   <component name="VcsManagerConfiguration">
830
-    <MESSAGE value="creation classe de base" />
831 810
     <MESSAGE value="evolution" />
832 811
     <MESSAGE value="evolution (pikachu evolue en raichu)" />
833 812
     <MESSAGE value="+mieux l'interface et easter egg ajouté" />
@@ -852,7 +831,8 @@
852 831
     <MESSAGE value="avancées javadoc2" />
853 832
     <MESSAGE value="avancées javadoc3" />
854 833
     <MESSAGE value="avancées javadoc4" />
855
-    <option name="LAST_COMMIT_MESSAGE" value="avancées javadoc4" />
834
+    <MESSAGE value="avancées javadoc5" />
835
+    <option name="LAST_COMMIT_MESSAGE" value="avancées javadoc5" />
856 836
   </component>
857 837
   <component name="XDebuggerManager">
858 838
     <breakpoint-manager>
@@ -1186,9 +1166,53 @@
1186 1166
         </state>
1187 1167
       </provider>
1188 1168
     </entry>
1169
+    <entry file="file://$PROJECT_DIR$/src/Modele/Reponses.java">
1170
+      <provider selected="true" editor-type-id="text-editor">
1171
+        <state vertical-scroll-proportion="0.74626863">
1172
+          <caret line="60" column="95" selection-start-line="60" selection-start-column="95" selection-end-line="60" selection-end-column="95" />
1173
+          <folding>
1174
+            <element signature="e#555#556#0" expanded="true" />
1175
+            <element signature="e#577#578#0" expanded="true" />
1176
+            <element signature="e#688#689#0" expanded="true" />
1177
+            <element signature="e#719#720#0" expanded="true" />
1178
+            <element signature="e#819#820#0" expanded="true" />
1179
+            <element signature="e#841#842#0" expanded="true" />
1180
+            <element signature="e#954#955#0" expanded="true" />
1181
+            <element signature="e#985#986#0" expanded="true" />
1182
+            <element signature="e#1164#1165#0" expanded="true" />
1183
+            <element signature="e#1223#1224#0" expanded="true" />
1184
+          </folding>
1185
+        </state>
1186
+      </provider>
1187
+    </entry>
1188
+    <entry file="file://$PROJECT_DIR$/src/Modele/Question.java">
1189
+      <provider selected="true" editor-type-id="text-editor">
1190
+        <state vertical-scroll-proportion="0.048507463">
1191
+          <caret line="100" column="31" selection-start-line="100" selection-start-column="31" selection-end-line="100" selection-end-column="31" />
1192
+          <folding>
1193
+            <element signature="e#873#874#0" expanded="true" />
1194
+            <element signature="e#895#896#0" expanded="true" />
1195
+            <element signature="e#1028#1029#0" expanded="true" />
1196
+            <element signature="e#1059#1060#0" expanded="true" />
1197
+            <element signature="e#1157#1158#0" expanded="true" />
1198
+            <element signature="e#1179#1180#0" expanded="true" />
1199
+            <element signature="e#1290#1291#0" expanded="true" />
1200
+            <element signature="e#1321#1322#0" expanded="true" />
1201
+            <element signature="e#1421#1422#0" expanded="true" />
1202
+            <element signature="e#1443#1444#0" expanded="true" />
1203
+            <element signature="e#1556#1557#0" expanded="true" />
1204
+            <element signature="e#1587#1588#0" expanded="true" />
1205
+            <element signature="e#1711#1712#0" expanded="true" />
1206
+            <element signature="e#1732#1733#0" expanded="true" />
1207
+            <element signature="e#1868#1869#0" expanded="true" />
1208
+            <element signature="e#1897#1898#0" expanded="true" />
1209
+          </folding>
1210
+        </state>
1211
+      </provider>
1212
+    </entry>
1189 1213
     <entry file="file://$PROJECT_DIR$/src/Modele/Categorie.java">
1190 1214
       <provider selected="true" editor-type-id="text-editor">
1191
-        <state vertical-scroll-proportion="0.8731343">
1215
+        <state vertical-scroll-proportion="0.74626863">
1192 1216
           <caret line="40" column="7" selection-start-line="40" selection-start-column="7" selection-end-line="40" selection-end-column="7" />
1193 1217
           <folding />
1194 1218
         </state>
@@ -1202,39 +1226,14 @@
1202 1226
         </state>
1203 1227
       </provider>
1204 1228
     </entry>
1205
-    <entry file="file://$PROJECT_DIR$/src/Modele/Reponses.java">
1229
+    <entry file="file://$PROJECT_DIR$/src/Modele/package-info.java">
1206 1230
       <provider selected="true" editor-type-id="text-editor">
1207
-        <state vertical-scroll-proportion="0.0">
1208
-          <caret line="2" column="13" selection-start-line="2" selection-start-column="13" selection-end-line="2" selection-end-column="13" />
1231
+        <state vertical-scroll-proportion="0.063432835">
1232
+          <caret line="2" column="17" selection-start-line="2" selection-start-column="17" selection-end-line="2" selection-end-column="17" />
1209 1233
           <folding />
1210 1234
         </state>
1211 1235
       </provider>
1212 1236
     </entry>
1213
-    <entry file="file://$PROJECT_DIR$/src/Modele/Question.java">
1214
-      <provider selected="true" editor-type-id="text-editor">
1215
-        <state vertical-scroll-proportion="0.09514926">
1216
-          <caret line="4" column="17" selection-start-line="4" selection-start-column="17" selection-end-line="4" selection-end-column="17" />
1217
-          <folding>
1218
-            <element signature="e#439#440#0" expanded="true" />
1219
-            <element signature="e#461#462#0" expanded="true" />
1220
-            <element signature="e#506#507#0" expanded="true" />
1221
-            <element signature="e#537#538#0" expanded="true" />
1222
-            <element signature="e#569#570#0" expanded="true" />
1223
-            <element signature="e#591#592#0" expanded="true" />
1224
-            <element signature="e#636#637#0" expanded="true" />
1225
-            <element signature="e#667#668#0" expanded="true" />
1226
-            <element signature="e#699#700#0" expanded="true" />
1227
-            <element signature="e#721#722#0" expanded="true" />
1228
-            <element signature="e#766#767#0" expanded="true" />
1229
-            <element signature="e#797#798#0" expanded="true" />
1230
-            <element signature="e#825#826#0" expanded="true" />
1231
-            <element signature="e#846#847#0" expanded="true" />
1232
-            <element signature="e#886#887#0" expanded="true" />
1233
-            <element signature="e#915#916#0" expanded="true" />
1234
-          </folding>
1235
-        </state>
1236
-      </provider>
1237
-    </entry>
1238 1237
   </component>
1239 1238
   <component name="masterDetails">
1240 1239
     <states>

+ 55
- 0
java/src/Modele/Question.java Parādīt failu

@@ -6,11 +6,30 @@ package Modele;
6 6
  */
7 7
 public class Question
8 8
 {
9
+	/**
10
+	 * Intitulé de la qustion.
11
+	 */
9 12
 	protected String intitule;
13
+	/**
14
+	 * Réponse une.
15
+	 */
10 16
 	protected String reponse1;
17
+	/**
18
+	 * Réponse deux.
19
+	 */
11 20
 	protected String reponse2;
21
+	/**
22
+	 * Numéro bonne réponses.
23
+	 */
12 24
 	protected int reponse;
13 25
 
26
+	/**
27
+	 * Constructeur initiant les champs de la question.
28
+	 * @param intitule Intitulé de la question.
29
+	 * @param reponse1 Réponse une.
30
+	 * @param reponse2 Réponse deux.
31
+	 * @param reponse Numéro bonne réponse.
32
+	 */
14 33
 	public Question(String intitule, String reponse1, String reponse2, int reponse) {
15 34
 		this.intitule = intitule;
16 35
 		this.reponse1 = reponse1;
@@ -18,38 +37,74 @@ public class Question
18 37
 		this.reponse = reponse;
19 38
 	}
20 39
 
40
+	/**
41
+	 * Renvoie l'intitulé de la question.
42
+	 * @return l'intitulé de la question.
43
+	 */
21 44
 	public String getIntitule() {
22 45
 		return intitule;
23 46
 	}
24 47
 
48
+	/**
49
+	 * Modifie l'intitulé de la question.
50
+	 * @return l'intitulé de la question.
51
+	 */
25 52
 	public void setIntitule(String intitule) {
26 53
 		this.intitule = intitule;
27 54
 	}
28 55
 
56
+	/**
57
+	 * Renvoie la réponse une.
58
+	 * @return la réponse une.
59
+	 */
29 60
 	public String getReponse1() {
30 61
 		return reponse1;
31 62
 	}
32 63
 
64
+	/**
65
+	 * Modifie la réponse une.
66
+	 * @return la réponse une.
67
+	 */
33 68
 	public void setReponse1(String reponse1) {
34 69
 		this.reponse1 = reponse1;
35 70
 	}
36 71
 
72
+	/**
73
+	 * Renvoie la réponse deux.
74
+	 * @return la réponse deux.
75
+	 */
37 76
 	public String getReponse2() {
38 77
 		return reponse2;
39 78
 	}
40 79
 
80
+	/**
81
+	 * Modifie la réponse deux.
82
+	 * @return la réponse deux.
83
+	 */
41 84
 	public void setReponse2(String reponse2) {
42 85
 		this.reponse2 = reponse2;
43 86
 	}
44 87
 
88
+	/**
89
+	 * Renvoie le numéro de la bonne réponse.
90
+	 * @return le numéro de la bonne réponse.
91
+	 */
45 92
 	public int getReponse() {
46 93
 		return reponse;
47 94
 	}
48 95
 
96
+	/**
97
+	 * Modifie le numéro de la bonne réponse.
98
+	 * @return le numéro de la bonne réponse.
99
+	 */
49 100
 	public void setReponse(int reponse) {
50 101
 		this.reponse = reponse;
51 102
 	}
52 103
 
104
+	/**
105
+	 * Renvoie une chaine représentant l'objet, sous la forme: "intitulé | bonneRéponse".
106
+	 * @return une chaine représentant l'objet.
107
+	 */
53 108
 	public String toString() {
54 109
 		String bonneReponse = new String();
55 110
 		if(reponse == 0)

+ 35
- 0
java/src/Modele/Reponses.java Parādīt failu

@@ -1,31 +1,66 @@
1 1
 package Modele;
2 2
 
3
+/**
4
+ * Modéle représentant un jeu de réponses.
5
+ * @author joseph
6
+ */
3 7
 public class Reponses
4 8
 {
9
+	/**
10
+	 * Réponse 1
11
+	 */
5 12
 	protected String reponse1;
13
+	/**
14
+	 * Réponse 2
15
+	 */
6 16
 	protected String reponse2;
7 17
 
18
+	/**
19
+	 * Constructeur d'initialisation des réponses du jeu.
20
+	 * @param reponse1 Réponse une.
21
+	 * @param reponse2 Réponse deux.
22
+	 */
8 23
 	public Reponses(String reponse1, String reponse2) {
9 24
 		this.reponse1 = reponse1;
10 25
 		this.reponse2 = reponse2;
11 26
 	}
12 27
 
28
+	/**
29
+	 * Renvoie la réponse une.
30
+	 * @return la réponse une.
31
+	 */
13 32
 	public String getReponse1() {
14 33
 		return reponse1;
15 34
 	}
16 35
 
36
+	/**
37
+	 * Modifie la réponse une.
38
+	 * @return la réponse une.
39
+	 */
17 40
 	public void setReponse1(String reponse1) {
18 41
 		this.reponse1 = reponse1;
19 42
 	}
20 43
 
44
+	/**
45
+	 * Renvoie la réponse deux.
46
+	 * @return la réponse deux.
47
+	 */
21 48
 	public String getReponse2() {
22 49
 		return reponse2;
23 50
 	}
24 51
 
52
+	/**
53
+	 * Modifie la réponse deux.
54
+	 * @return la réponse deux.
55
+	 */
25 56
 	public void setReponse2(String reponse2) {
26 57
 		this.reponse2 = reponse2;
27 58
 	}
28 59
 
60
+	/**
61
+	 * Renvoie une chaine représentant l'objet, sous la forme: "reponse1, reponse2 ou les deux?".
62
+	 * @return une chaine représentant l'objet.
63
+	 */
29 64
 	public String toString() {
30 65
 		return  reponse1 + ", " + reponse2 + " ou les deux?";
31 66
 	}

+ 5
- 0
java/src/Modele/package-info.java Parādīt failu

@@ -0,0 +1,5 @@
1
+/**
2
+ * Contient les modéles représentant les données manipulées.
3
+ * @author joseph
4
+ */
5
+package Modele;