V4.1.2
This commit is contained in:
parent
4e49c959c2
commit
074c8fe6ec
@ -15,6 +15,6 @@ Cette application permet d’évaluer un très grand nombre de fichiers réalis
|
|||||||
• de générer des fichiers d’analyses pour créer ses propres évaluations.
|
• de générer des fichiers d’analyses pour créer ses propres évaluations.
|
||||||
|
|
||||||
### Tutoriels :
|
### Tutoriels :
|
||||||
https://artoistv.univ-artois.fr/video/4334-presentation-analysewriter/
|
https://www.youtube.com/watch?v=vmE38I6iVCs
|
||||||
|
|
||||||
https://www.youtube.com/channel/UCBSfItcCVnbRJdQbVE9ppjQ
|
https://www.youtube.com/channel/UCBSfItcCVnbRJdQbVE9ppjQ
|
Binary file not shown.
15
bin/.gitignore
vendored
15
bin/.gitignore
vendored
@ -1,3 +1,18 @@
|
|||||||
/app/
|
/app/
|
||||||
/MEPTL/
|
/MEPTL/
|
||||||
/calcul/
|
/calcul/
|
||||||
|
/couleur.png
|
||||||
|
/couleur.svg
|
||||||
|
/couleurmini.png
|
||||||
|
/similitude.png
|
||||||
|
/similitude.svg
|
||||||
|
/similitudemini.png
|
||||||
|
/traduction.png
|
||||||
|
/traduction.svg
|
||||||
|
/traductionmini.png
|
||||||
|
/triche.png
|
||||||
|
/triche.svg
|
||||||
|
/trichemini.png
|
||||||
|
/zip.png
|
||||||
|
/zip.svg
|
||||||
|
/zipmini.png
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,5 +1,7 @@
|
|||||||
package app;
|
package app;
|
||||||
|
|
||||||
|
import java.text.DecimalFormat;
|
||||||
|
import java.text.NumberFormat;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Enumeration;
|
import java.util.Enumeration;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@ -24,7 +26,10 @@ public class afficheText extends JEditorPane {
|
|||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Raffraichie l'affichage de la fenête create lorsque selection d'un node.
|
||||||
|
* @param nod
|
||||||
|
*/
|
||||||
public void refreshAffichage(node nod) {
|
public void refreshAffichage(node nod) {
|
||||||
|
|
||||||
if(nod!=null) {
|
if(nod!=null) {
|
||||||
@ -234,6 +239,11 @@ public class afficheText extends JEditorPane {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Affiche le nombre de point d'un node.
|
||||||
|
* @param nod
|
||||||
|
* @param pointTotalNode
|
||||||
|
*/
|
||||||
public void AfficheTotalPoint(node nod, int pointTotalNode) {
|
public void AfficheTotalPoint(node nod, int pointTotalNode) {
|
||||||
|
|
||||||
setContentType("text/html");
|
setContentType("text/html");
|
||||||
@ -255,7 +265,44 @@ public class afficheText extends JEditorPane {
|
|||||||
setText("<html>"+sb.toString()+"</html>");
|
setText("<html>"+sb.toString()+"</html>");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Affiche le nombre de point et la réppartition dans les node principaux.
|
||||||
|
* @param liste
|
||||||
|
*/
|
||||||
|
public void afficheListeDesPointsDansToutExercice(ArrayList<String> liste) {
|
||||||
|
StringBuilder text = new StringBuilder();
|
||||||
|
NumberFormat f = new DecimalFormat("##.00");
|
||||||
|
text.append(baliseStyle.balise());
|
||||||
|
text.append("<hr><h1><u>INFORMATIONS</u><h1><hr><br>");
|
||||||
|
Double NbrPointDansExercice = 0.0;
|
||||||
|
|
||||||
|
for(int i = 0 ; i < liste.size(); i++) {
|
||||||
|
String[] A = liste.get(i).split(" ");
|
||||||
|
|
||||||
|
double NbrPointApresPonderation = 0.0;
|
||||||
|
int NbrPointBrut = 0;
|
||||||
|
NbrPointBrut = Integer.valueOf(A[1]);
|
||||||
|
NbrPointApresPonderation = NbrPointBrut*Double.valueOf(A[2]);
|
||||||
|
|
||||||
|
NbrPointDansExercice = NbrPointDansExercice + NbrPointApresPonderation;
|
||||||
|
|
||||||
|
if(NbrPointBrut>0) {
|
||||||
|
text.append("<p><b><u>Dans le node "+ A[0] + "</u></b>.<br>"
|
||||||
|
+ "Le nombre de point brut est de <b>" + A[1] + "</b><br>"
|
||||||
|
+ "Le poids est de " + A[2]+ " soit un total de <span class=\"rouge\"><b>" + f.format(NbrPointApresPonderation) + "</b></span></p><br><hr>");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
text.append("<br>");
|
||||||
|
text.append("<h3>Le nombre de point total dans l'exercice est de : " + f.format(NbrPointDansExercice) + "</h3>");
|
||||||
|
setContentType("text/html");
|
||||||
|
setText("<html>"+text.toString()+"</html>");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Affiche le chargement du fichier d'analyse
|
||||||
|
*/
|
||||||
public void afficheChargementFichierAnalyse(){
|
public void afficheChargementFichierAnalyse(){
|
||||||
|
|
||||||
|
|
||||||
|
@ -538,7 +538,7 @@ public class create extends JFrame {
|
|||||||
toolBar_1.addSeparator();
|
toolBar_1.addSeparator();
|
||||||
|
|
||||||
JButton btnTotalPoint = new JButton(actTotalPoint);
|
JButton btnTotalPoint = new JButton(actTotalPoint);
|
||||||
btnTotalPoint.setToolTipText("");
|
btnTotalPoint.setToolTipText("Nombre de point total dans l'exercice.");
|
||||||
btnTotalPoint.setText("");
|
btnTotalPoint.setText("");
|
||||||
btnTotalPoint.setIcon(new ImageIcon(create.class.getResource("/resources/totalpoint.png")));
|
btnTotalPoint.setIcon(new ImageIcon(create.class.getResource("/resources/totalpoint.png")));
|
||||||
toolBar_1.add(btnTotalPoint);
|
toolBar_1.add(btnTotalPoint);
|
||||||
@ -1401,14 +1401,15 @@ public class create extends JFrame {
|
|||||||
|
|
||||||
{
|
{
|
||||||
putValue( Action.NAME, "Nombre de point" );
|
putValue( Action.NAME, "Nombre de point" );
|
||||||
putValue( Action.SHORT_DESCRIPTION, "Nombre de points dans le node" );
|
putValue( Action.SHORT_DESCRIPTION, "Nombre de point total dans l'exercice" );
|
||||||
putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/totalpointmini.png")) );
|
putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/totalpointmini.png")) );
|
||||||
putValue( Action.LARGE_ICON_KEY, new ImageIcon(create.class.getResource("/resources/totalpoint.png")) );
|
putValue( Action.LARGE_ICON_KEY, new ImageIcon(create.class.getResource("/resources/totalpoint.png")) );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override public void actionPerformed( ActionEvent e ) {
|
@Override public void actionPerformed( ActionEvent e ) {
|
||||||
System.out.println("Calcul le nombre de point dans le sujet");
|
|
||||||
textNodeSelect.AfficheTotalPoint(commandes.sujet,calculNombrePointEvaluation.calculNombreDepoint(commandes.sujet,0));
|
textNodeSelect.afficheListeDesPointsDansToutExercice(calculNombrePointEvaluation.calculPointDansToutExercice());
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1419,7 +1420,7 @@ public class create extends JFrame {
|
|||||||
|
|
||||||
{
|
{
|
||||||
putValue( Action.NAME, "Nombre de point" );
|
putValue( Action.NAME, "Nombre de point" );
|
||||||
putValue( Action.SHORT_DESCRIPTION, "Nombre de points dans le node" );
|
putValue( Action.SHORT_DESCRIPTION, "Nombre de point brut dans le node" );
|
||||||
putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/totalpointnodemini.png")) );
|
putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/totalpointnodemini.png")) );
|
||||||
putValue( Action.LARGE_ICON_KEY, new ImageIcon(create.class.getResource("/resources/totalpointnode.png")) );
|
putValue( Action.LARGE_ICON_KEY, new ImageIcon(create.class.getResource("/resources/totalpointnode.png")) );
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,6 @@ import javax.swing.border.EmptyBorder;
|
|||||||
import javax.swing.filechooser.FileNameExtensionFilter;
|
import javax.swing.filechooser.FileNameExtensionFilter;
|
||||||
|
|
||||||
import MEPTL.commandes;
|
import MEPTL.commandes;
|
||||||
import MEPTL.verificationFichierAnalyse;
|
|
||||||
import cXML.Run;
|
import cXML.Run;
|
||||||
import cXML.node;
|
import cXML.node;
|
||||||
|
|
||||||
@ -33,7 +32,6 @@ import java.util.regex.Pattern;
|
|||||||
import java.awt.event.ActionEvent;
|
import java.awt.event.ActionEvent;
|
||||||
import java.awt.GridLayout;
|
import java.awt.GridLayout;
|
||||||
import java.awt.Color;
|
import java.awt.Color;
|
||||||
import javax.swing.UIManager;
|
|
||||||
|
|
||||||
public class setting extends JFrame {
|
public class setting extends JFrame {
|
||||||
|
|
||||||
|
@ -1,15 +1,34 @@
|
|||||||
package calcul;
|
package calcul;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.Enumeration;
|
import java.util.Enumeration;
|
||||||
import java.util.regex.Matcher;
|
import java.util.regex.Matcher;
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
import javax.swing.JOptionPane;
|
import javax.swing.JOptionPane;
|
||||||
|
|
||||||
|
import MEPTL.commandes;
|
||||||
import cXML.node;
|
import cXML.node;
|
||||||
|
|
||||||
public class calculNombrePointEvaluation {
|
public class calculNombrePointEvaluation {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Ensemble des points dans les différents node principaux.
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public static ArrayList<String> calculPointDansToutExercice(){
|
||||||
|
ArrayList<String> ListeNodeEvaluer = new ArrayList<String>();;
|
||||||
|
for(int i = 0 ; i < commandes.sujet.getNodes().size();i++) {
|
||||||
|
if(!commandes.sujet.getNodes().get(i).getNomElt().equals("setting")) {
|
||||||
|
ListeNodeEvaluer.add(commandes.sujet.getNodes().get(i).getNomElt() + " " +
|
||||||
|
String.valueOf(calculNombreDepoint(commandes.sujet.getNodes().get(i), 0)) + " " +
|
||||||
|
String.valueOf(commandes.sujet.getNodes().get(i).getAttributs().get("poids")));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return ListeNodeEvaluer;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public static int calculNombreDepoint(node nod, int point) {
|
public static int calculNombreDepoint(node nod, int point) {
|
||||||
|
|
||||||
if(nod.getAttributs().get("evaluer")!=null) if(nod.getAttributs().get("evaluer").equalsIgnoreCase("true")){
|
if(nod.getAttributs().get("evaluer")!=null) if(nod.getAttributs().get("evaluer").equalsIgnoreCase("true")){
|
||||||
|
Loading…
Reference in New Issue
Block a user