2021-11-30 22:02:55 +00:00
|
|
|
public class Condition {
|
|
|
|
|
|
|
|
String condition;
|
2021-12-01 08:09:27 +00:00
|
|
|
List<ConditionEt> conditionEts;
|
2021-11-30 22:02:55 +00:00
|
|
|
|
2021-12-01 08:09:27 +00:00
|
|
|
public Condition(
|
|
|
|
String condition,
|
|
|
|
List<ConditionEt> conditionEts) {
|
2021-11-30 22:02:55 +00:00
|
|
|
this.condition = condition;
|
|
|
|
this.conditionEts = conditionEts;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Boolean evaluer() {
|
|
|
|
for (ConditionEt cond : conditionEts) {
|
|
|
|
if (cond.evaluer()) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|