MAJ (V4.3.1)
This commit is contained in:
parent
d1afbcf303
commit
9928813fb3
Binary file not shown.
Binary file not shown.
1
bin/.gitignore
vendored
1
bin/.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
/fenetres/
|
/fenetres/
|
||||||
/list/
|
/list/
|
||||||
/MEPTL/
|
/MEPTL/
|
||||||
|
/evaluer/
|
||||||
|
Binary file not shown.
Binary file not shown.
@ -563,16 +563,21 @@ public class rechercherUnNodeStudent {
|
|||||||
double tolerance = 0.05;
|
double tolerance = 0.05;
|
||||||
String valueAttribut = evaluation.withoutCodeAndPoint(nodSujet.getAttributs().get("style:position"));
|
String valueAttribut = evaluation.withoutCodeAndPoint(nodSujet.getAttributs().get("style:position"));
|
||||||
|
|
||||||
Pattern p3 = Pattern.compile("^[0-9]{0,}\\.[0-9]{0,}");
|
if(!valueAttribut.contains("→")) {
|
||||||
Matcher m3 = p3.matcher(valueAttribut);
|
Pattern p3 = Pattern.compile("^[0-9]{0,}\\.[0-9]{0,}|^[0-9]{0,}");
|
||||||
if(m3.find()) {
|
Matcher m3 = p3.matcher(valueAttribut);
|
||||||
valueAttribut = (valueAttribut.substring(m3.start(), m3.end()));
|
if(m3.find()) {
|
||||||
|
valueAttribut = (valueAttribut.substring(m3.start(), m3.end()));
|
||||||
|
}else {
|
||||||
|
System.out.println("no match");
|
||||||
|
}
|
||||||
}else {
|
}else {
|
||||||
System.out.println("no match");
|
tolerance = (evaluation.TraitementIntervaleRetourneValeurMaximale(valueAttribut) - evaluation.TraitementIntervaleRetourneValeurMinimale(valueAttribut))/2;
|
||||||
|
System.out.println("tolérance du tab-stop="+ tolerance);
|
||||||
|
valueAttribut = String.valueOf(evaluation.TraitementIntervaleRetourneValeurMaximale(valueAttribut) - tolerance);
|
||||||
|
System.out.println("Valeur du tab-stop=" + valueAttribut);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
System.out.println(valueAttribut);
|
System.out.println(valueAttribut);
|
||||||
double Valeur = Double.valueOf(valueAttribut);
|
double Valeur = Double.valueOf(valueAttribut);
|
||||||
System.out.println("Valeur sujet tab-stop="+Valeur);
|
System.out.println("Valeur sujet tab-stop="+Valeur);
|
||||||
|
@ -362,6 +362,40 @@ public class evaluation {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public static double TraitementIntervaleRetourneValeurMinimale(String Intervale) {
|
||||||
|
String Text[] = Intervale.split("→");
|
||||||
|
|
||||||
|
// rechercher un digite une ou plusieur fois en fin.
|
||||||
|
Pattern p = Pattern.compile("[^0-9\\.]");
|
||||||
|
|
||||||
|
// remplacement de toutes les occurrences par ""
|
||||||
|
Text[0]= p.matcher(Text[0]).replaceAll("");
|
||||||
|
Text[1] = p.matcher(Text[1]).replaceAll("");
|
||||||
|
|
||||||
|
|
||||||
|
double b0 = Double.valueOf(Text[0]);
|
||||||
|
// double b1 = Double.valueOf(Text[1]);
|
||||||
|
|
||||||
|
return b0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static double TraitementIntervaleRetourneValeurMaximale(String Intervale) {
|
||||||
|
String Text[] = Intervale.split("→");
|
||||||
|
|
||||||
|
// rechercher un digite une ou plusieur fois en fin.
|
||||||
|
Pattern p = Pattern.compile("[^0-9\\.]");
|
||||||
|
|
||||||
|
// remplacement de toutes les occurrences par ""
|
||||||
|
Text[0]= p.matcher(Text[0]).replaceAll("");
|
||||||
|
Text[1] = p.matcher(Text[1]).replaceAll("");
|
||||||
|
|
||||||
|
|
||||||
|
// double b0 = Double.valueOf(Text[0]);
|
||||||
|
double b1 = Double.valueOf(Text[1]);
|
||||||
|
|
||||||
|
return b1;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Traitement des bordures
|
* Traitement des bordures
|
||||||
|
Loading…
x
Reference in New Issue
Block a user