23 lines
465 B
Java
23 lines
465 B
Java
public class Condition {
|
|
|
|
String condition;
|
|
List<ConditionEt> conditionEts;
|
|
|
|
public Condition(
|
|
String condition,
|
|
List<ConditionEt> conditionEts) {
|
|
this.condition = condition;
|
|
this.conditionEts = conditionEts;
|
|
}
|
|
|
|
public Boolean evaluer() {
|
|
for (ConditionEt cond : conditionEts) {
|
|
if (cond.evaluer()) {
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
}
|