116 lines
3.6 KiB
Java
116 lines
3.6 KiB
Java
package calcul;
|
|
|
|
public class calculIntervalleBaremeABCDE {
|
|
|
|
String messageHTMLColonne="";
|
|
String messageHTMLLigne="";
|
|
String messageLigne="";
|
|
String messageColonne="";
|
|
|
|
double intervalle1;
|
|
double intervalle2;
|
|
double intervalle3;
|
|
double intervalle4;
|
|
|
|
public calculIntervalleBaremeABCDE(Double progression) {
|
|
|
|
this.intervalle1 = Math.pow(0.2, 1/progression) ;
|
|
this.intervalle2 = Math.pow(0.4, 1/progression) ;
|
|
this.intervalle3 = Math.pow(0.6, 1/progression) ;
|
|
this.intervalle4 = Math.pow(0.8, 1/progression) ;
|
|
|
|
|
|
this.messageHTMLColonne = "<html>E=[0% → " + Math.round(intervalle1*100) + "%[<br>"
|
|
+"D=["+ Math.round(this.intervalle1*100) + " → " + Math.round(this.intervalle2*100) + "%[<br>"
|
|
+"C=["+ Math.round(this.intervalle2*100) + " → " + Math.round(this.intervalle3*100) + "%[<br>"
|
|
+"B=["+ Math.round(this.intervalle3*100) + " → " + Math.round(this.intervalle4*100) + "%[<br>"
|
|
+"A=["+ Math.round(this.intervalle4*100) +" → 100%[</html>";
|
|
|
|
this.messageHTMLLigne= "<html>E=[0% → " + Math.round(intervalle1*100) + "%["
|
|
+"D=["+ Math.round(this.intervalle1*100) + " → " + Math.round(this.intervalle2*100) + "%["
|
|
+"C=["+ Math.round(this.intervalle2*100) + " → " + Math.round(this.intervalle3*100) + "%["
|
|
+"B=["+ Math.round(this.intervalle3*100) + " → " + Math.round(intervalle4*100) + "%["
|
|
+"A=["+ Math.round(this.intervalle4*100) +"→ 100%[</html>";
|
|
|
|
this.messageLigne= "E=[0% → " + Math.round(intervalle1*100) + "%["
|
|
+"D=["+ Math.round(this.intervalle1*100) + " → " + Math.round(this.intervalle2*100) + "%[ "
|
|
+"C=["+ Math.round(this.intervalle2*100) + " → " + Math.round(this.intervalle3*100) + "%[ "
|
|
+"B=["+ Math.round(this.intervalle3*100) + " → " + Math.round(intervalle4*100) + "%[ "
|
|
+"A=["+ Math.round(this.intervalle4*100) +" → 100%[";
|
|
|
|
this.messageLigne= "E=[0% → " + Math.round(intervalle1*100) + "%[\n"
|
|
+"D=["+ Math.round(this.intervalle1*100) + " → " + Math.round(this.intervalle2*100) + "%[\n"
|
|
+"C=["+ Math.round(this.intervalle2*100) + " → " + Math.round(this.intervalle3*100) + "%[\n"
|
|
+"B=["+ Math.round(this.intervalle3*100) + " → " + Math.round(intervalle4*100) + "%[\n"
|
|
+"A=["+ Math.round(this.intervalle4*100) +" → 100%[";
|
|
|
|
}
|
|
|
|
public String getMessageHTMLColonne() {
|
|
return messageHTMLColonne;
|
|
}
|
|
|
|
public void setMessageHTMLColonne(String messageHTMLColonne) {
|
|
this.messageHTMLColonne = messageHTMLColonne;
|
|
}
|
|
|
|
public String getMessageHTMLLigne() {
|
|
return messageHTMLLigne;
|
|
}
|
|
|
|
public void setMessageHTMLLigne(String messageHTMLLigne) {
|
|
this.messageHTMLLigne = messageHTMLLigne;
|
|
}
|
|
|
|
public String getMessageLigne() {
|
|
return messageLigne;
|
|
}
|
|
|
|
public void setMessageLigne(String messageLigne) {
|
|
this.messageLigne = messageLigne;
|
|
}
|
|
|
|
public String getMessageColonne() {
|
|
return messageColonne;
|
|
}
|
|
|
|
public void setMessageColonne(String messageColonne) {
|
|
this.messageColonne = messageColonne;
|
|
}
|
|
|
|
public double getIntervalle1() {
|
|
return intervalle1;
|
|
}
|
|
|
|
public void setIntervalle1(double intervalle1) {
|
|
this.intervalle1 = intervalle1;
|
|
}
|
|
|
|
public double getIntervalle2() {
|
|
return intervalle2;
|
|
}
|
|
|
|
public void setIntervalle2(double intervalle2) {
|
|
this.intervalle2 = intervalle2;
|
|
}
|
|
|
|
public double getIntervalle3() {
|
|
return intervalle3;
|
|
}
|
|
|
|
public void setIntervalle3(double intervalle3) {
|
|
this.intervalle3 = intervalle3;
|
|
}
|
|
|
|
public double getIntervalle4() {
|
|
return intervalle4;
|
|
}
|
|
|
|
public void setIntervalle4(double intervalle4) {
|
|
this.intervalle4 = intervalle4;
|
|
}
|
|
|
|
|
|
|
|
}
|