Annexes
1. Annexe 1 : Diagrammes UML
Figure 49 : Diagramme de cas d'utilisation
Figure 50 : Diagramme d'activité
Figure 51 : Diagramme de classe
Figure 52 : Diagramme de collaboration
Figure 53 : Diagramme
d'états/transitions
Figure 54 : Diagramme d'objets
Figure 55 : Diagramme de séquences
Figure 56 : Diagramme de composants
2. Annexe 2 : Le code source
généré par Visual Editor
javax.swing.GroupLayout layout = new
javax.swing.GroupLayout(this);
layout.setHorizontalGroup(
layout.createParallelGroup(Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(41)
.addGroup(layout.createParallelGroup(Alignment.LEADING)
.addComponent(jLabel2,
GroupLayout.PREFERRED_SIZE, 55,
GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel3))
.addGap(44)
.addGroup(layout.createParallelGroup(Alignment.TRAILING,
false)
.addComponent(jButton1, Alignment.LEADING,
GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
.addComponent(login, Alignment.LEADING)
.addComponent(mdp, Alignment.LEADING)))
.addGroup(layout.createSequentialGroup()
.addGap(138)
.addGroup(layout.createParallelGroup(Alignment.LEADING)
.addComponent(jLabel4,
GroupLayout.DEFAULT_SIZE, 340, Short.MAX_VALUE)
.addComponent(jLabel1,
GroupLayout.DEFAULT_SIZE, 291, Short.MAX_VALUE))))
.addContainerGap(21,
GroupLayout.PREFERRED_SIZE))
);
layout.setVerticalGroup(
layout.createParallelGroup(Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(71)
.addComponent(jLabel1)
.addGap(18)
.addGroup(layout.createParallelGroup(Alignment.BASELINE)
.addComponent(jLabel2)
.addComponent(login,
GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,
GroupLayout.PREFERRED_SIZE))
.addGap(18)
.addGroup(layout.createParallelGroup(Alignment.BASELINE)
.addComponent(jLabel3)
.addComponent(mdp,
GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,
GroupLayout.PREFERRED_SIZE))
.addPreferredGap(ComponentPlacement.UNRELATED)
.addComponent(jLabel4)
.addGap(30)
.addComponent(jButton1)
.addContainerGap(58, Short.MAX_VALUE))
);
3. Annexe 3 : Exemple d'une
génération de code
Figure 57 : Exemple de génération de
code
public abstract class Utilisateur {
private long _numero;
private String _motDePasse;
public void afficherMenu() {
throw new UnsupportedOperationException();
}
public static int connexion(long aNumero, String aMotDePasse)
{
throw new UnsupportedOperationException();
}
}
public class Etudiant extends Utilisateur {
private String _nom;
private String _prenom;
private String _mail;
public Module[] _module = new Module[0];
public ReponseQCM[] _reponseQCM = new ReponseQCM[0];
public void passerQCM(long aIdQCM) {
throw new UnsupportedOperationException();
}
public ReponseQCM recupererReponse(long aIdQCM) {
throw new UnsupportedOperationException();
}
}
public class Professeur extends Utilisateur {
private String _nom;
private String _prenom;
public Module _module;
public QCM[] _qCM = new QCM[0];
}
|