Finalise V4.3.1

This commit is contained in:
pablo rodriguez 2022-12-03 11:10:57 +01:00
parent 658420e6d7
commit 1cbe975044
20 changed files with 76 additions and 76 deletions

Binary file not shown.

Binary file not shown.

1
bin/.gitignore vendored
View File

@ -1 +1,2 @@
/fenetres/ /fenetres/
/evaluer/

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.

View File

@ -52,15 +52,15 @@ public class analyseLesNodesEnfants {
//******************************** //********************************
PourAnalyse = meptl.addNodeSautTitre(nodEnfantSujet, PourAnalyse,nodmenu,a); PourAnalyse = meptl.addNodeSautTitre(nodEnfantSujet, PourAnalyse,nodmenu,a);
//******************* // //*******************
//** Le node <OU/> ** // //** Le node <OU/> **
//******************* // //*******************
if(nameNode.equals("OU")) { // if(nameNode.equals("OU")) {
if(nodEnfantSujet.getNodes().size()>1) { // if(nodEnfantSujet.getNodes().size()>1) {
PourAnalyse = NodeOu(j,nodEnfantSujet, PourAnalyse, nomDuNodePourAnalyse,nod2Student,nod1Student,nodStudent,nodSujet,nodSujetParagraphs,nodStudentParagraphes,nodmenu,a); // PourAnalyse = NodeOu(j,nodEnfantSujet, PourAnalyse, nomDuNodePourAnalyse,nod2Student,nod1Student,nodStudent,nodSujet,nodSujetParagraphs,nodStudentParagraphes,nodmenu,a);
} // }
continue; // continue;
} // }
//*************************************************** //***************************************************
//** Recherche le node correspondant de l'étudiant ** //** Recherche le node correspondant de l'étudiant **
@ -179,66 +179,66 @@ public class analyseLesNodesEnfants {
} }
public static node NodeOu(Integer j , node nodEnfantSujet , node PourAnalyse, String nomDuNodePourAnalyse, node nod2Student, node nod1Student, node nodStudent, node nodSujet, node nodSujetParagraphs, node nodStudentParagraphes, node nodmenu,Run a) { // public static node NodeOu(Integer j , node nodEnfantSujet , node PourAnalyse, String nomDuNodePourAnalyse, node nod2Student, node nod1Student, node nodStudent, node nodSujet, node nodSujetParagraphs, node nodStudentParagraphes, node nodmenu,Run a) {
//
node nodStudentCorrespondantAuNodSujet = null; // node nodStudentCorrespondantAuNodSujet = null;
//
for(int k = j+1 ; k < nodSujet.getNodes().size();k++ ) { // for(int k = j+1 ; k < nodSujet.getNodes().size();k++ ) {
//
nodEnfantSujet = nodSujet.getNodes().get(k); // nodEnfantSujet = nodSujet.getNodes().get(k);
String nameNode = nodEnfantSujet.getNomElt(); // String nameNode = nodEnfantSujet.getNomElt();
//
//*************************************************** // //***************************************************
//** Recherche le node correspondant de l'étudiant ** // //** Recherche le node correspondant de l'étudiant **
//*************************************************** // //***************************************************
if(nodEnfantSujet.getAttributs().get("evaluer")!=null) { // if(nodEnfantSujet.getAttributs().get("evaluer")!=null) {
if(nodEnfantSujet.getAttributs().get("evaluer").equals("true")) { // if(nodEnfantSujet.getAttributs().get("evaluer").equals("true")) {
if(nod2Student!=null) { // if(nod2Student!=null) {
if(nod2Student.containElementByName(nameNode)) { // if(nod2Student.containElementByName(nameNode)) {
nodStudentCorrespondantAuNodSujet = rechercherUnNodeStudent.rechercheLeNodeEnCascade(nameNode,nodEnfantSujet,nodStudent,nod1Student,nod2Student,a); // nodStudentCorrespondantAuNodSujet = rechercherUnNodeStudent.rechercheLeNodeEnCascade(nameNode,nodEnfantSujet,nodStudent,nod1Student,nod2Student,a);
} // }
} // }
if(nodStudentCorrespondantAuNodSujet==null && nod1Student!=null) { // if(nodStudentCorrespondantAuNodSujet==null && nod1Student!=null) {
if(nod1Student.containElementByName(nameNode)) { // if(nod1Student.containElementByName(nameNode)) {
nodStudentCorrespondantAuNodSujet = rechercherUnNodeStudent.rechercheLeNodeEnCascade(nameNode,nodEnfantSujet,nodStudent,nod1Student,nod2Student,a); // nodStudentCorrespondantAuNodSujet = rechercherUnNodeStudent.rechercheLeNodeEnCascade(nameNode,nodEnfantSujet,nodStudent,nod1Student,nod2Student,a);
} // }
} // }
if(nodStudentCorrespondantAuNodSujet==null && nodStudent!=null) { // if(nodStudentCorrespondantAuNodSujet==null && nodStudent!=null) {
if(nodStudent.containElementByName(nameNode)) { // if(nodStudent.containElementByName(nameNode)) {
nodStudentCorrespondantAuNodSujet = rechercherUnNodeStudent.rechercheLeNodeEnCascade(nameNode,nodEnfantSujet,nodStudent,nod1Student,nod2Student,a); // nodStudentCorrespondantAuNodSujet = rechercherUnNodeStudent.rechercheLeNodeEnCascade(nameNode,nodEnfantSujet,nodStudent,nod1Student,nod2Student,a);
} // }
} // }
} // }
} // }
//
//
//************************************************************** // //**************************************************************
//** Analyse attribut et contenu du node enfant de l'étudiant ** // //** Analyse attribut et contenu du node enfant de l'étudiant **
//************************************************************** // //**************************************************************
PourAnalyse = evaluationAttribut.evalLesAttributEtContenuDuNode(nodStudentCorrespondantAuNodSujet, nodEnfantSujet, PourAnalyse, nomDuNodePourAnalyse,nameNode); // PourAnalyse = evaluationAttribut.evalLesAttributEtContenuDuNode(nodStudentCorrespondantAuNodSujet, nodEnfantSujet, PourAnalyse, nomDuNodePourAnalyse,nameNode);
//
//******************************* // //*******************************
//** méthode analyseStyle=true ** // //** méthode analyseStyle=true **
//******************************* // //*******************************
if(nameNode.contains("text:") && nodEnfantSujet.getAttributs().get("analyseStyle")!=null && nodSujetParagraphs!=null) { // if(nameNode.contains("text:") && nodEnfantSujet.getAttributs().get("analyseStyle")!=null && nodSujetParagraphs!=null) {
if(nodEnfantSujet.getAttributs().get("analyseStyle").equalsIgnoreCase("true")) { // if(nodEnfantSujet.getAttributs().get("analyseStyle").equalsIgnoreCase("true")) {
PourAnalyse = analyseStyle(PourAnalyse, nomDuNodePourAnalyse, nodEnfantSujet,nodStudentCorrespondantAuNodSujet, nodSujetParagraphs,nodStudentParagraphes, nodmenu, a); // PourAnalyse = analyseStyle(PourAnalyse, nomDuNodePourAnalyse, nodEnfantSujet,nodStudentCorrespondantAuNodSujet, nodSujetParagraphs,nodStudentParagraphes, nodmenu, a);
} // }
} // }
//
//************************************************************ // //************************************************************
//** Analyse les nodes enfants du node enfant - Récursivité ** // //** Analyse les nodes enfants du node enfant - Récursivité **
//************************************************************ // //************************************************************
if(nodEnfantSujet!=null) { // if(nodEnfantSujet!=null) {
PourAnalyse = nodeNext(PourAnalyse, nomDuNodePourAnalyse, nodStudentCorrespondantAuNodSujet, nod2Student, nod1Student, nodEnfantSujet, nodSujetParagraphs, nodStudentParagraphes, nodmenu,a); // PourAnalyse = nodeNext(PourAnalyse, nomDuNodePourAnalyse, nodStudentCorrespondantAuNodSujet, nod2Student, nod1Student, nodEnfantSujet, nodSujetParagraphs, nodStudentParagraphes, nodmenu,a);
} // }
//
//
} // }
//
//
return PourAnalyse; // return PourAnalyse;
} // }

View File

@ -83,7 +83,6 @@ import fenetres.create_act.actExpandNode;
import fenetres.create_act.actNewFichierAnalyse; import fenetres.create_act.actNewFichierAnalyse;
import fenetres.create_act.actNodeFichier; import fenetres.create_act.actNodeFichier;
import fenetres.create_act.actOpen; import fenetres.create_act.actOpen;
import fenetres.create_act.actOu;
import fenetres.create_act.actPaste; import fenetres.create_act.actPaste;
import fenetres.create_act.actRechercheAnchorPageNumberFalse; import fenetres.create_act.actRechercheAnchorPageNumberFalse;
import fenetres.create_act.actRechercheAnchorPageNumberTrue; import fenetres.create_act.actRechercheAnchorPageNumberTrue;
@ -450,10 +449,10 @@ public final class create extends JFrame {
mnEvaluerStylesParagraphes.setIcon(new ImageIcon(create.class.getResource("/resources/evaluertouslesstylesparagraphesmini.png"))); mnEvaluerStylesParagraphes.setIcon(new ImageIcon(create.class.getResource("/resources/evaluertouslesstylesparagraphesmini.png")));
mnEvaluerStylesParagraphes.add( new actEvaluerTousLesStylesParagraphesTrue()); mnEvaluerStylesParagraphes.add( new actEvaluerTousLesStylesParagraphesTrue());
//Menu OU // //Menu OU
JMenu mnOu = new JMenu("Insérer un node OU."); // JMenu mnOu = new JMenu("Insérer un node OU.");
mnOu.setIcon(new ImageIcon(create.class.getResource("/resources/oumini.png"))); // mnOu.setIcon(new ImageIcon(create.class.getResource("/resources/oumini.png")));
mnOu.add( new actOu()); // mnOu.add( new actOu());
@ -531,8 +530,8 @@ public final class create extends JFrame {
mnPopupTree.add(mnEvalNumeroAbsoluePage); mnPopupTree.add(mnEvalNumeroAbsoluePage);
mnPopupTree.addSeparator(); mnPopupTree.addSeparator();
mnPopupTree.add(mnEvaluerStylesParagraphes); mnPopupTree.add(mnEvaluerStylesParagraphes);
mnPopupTree.addSeparator(); // mnPopupTree.addSeparator();
mnPopupTree.add(mnOu); // mnPopupTree.add(mnOu);
} }
if(nod.getNomElt().equals("text:user-defined") && nod.chemin().contains("structurepage")) { if(nod.getNomElt().equals("text:user-defined") && nod.chemin().contains("structurepage")) {
mnPopupTree.addSeparator(); mnPopupTree.addSeparator();