-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathGreaterEquationConstraint.java
More file actions
33 lines (27 loc) · 992 Bytes
/
GreaterEquationConstraint.java
File metadata and controls
33 lines (27 loc) · 992 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package de.vill.model.constraint;
import de.vill.model.building.VariableReference;
import de.vill.model.expression.Expression;
import de.vill.util.ConstantSymbols;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class GreaterEquationConstraint extends ExpressionConstraint {
public GreaterEquationConstraint(final Expression left, final Expression right) {
super(left, right, ConstantSymbols.GREATER);
}
@Override
public List<Constraint> getConstraintSubParts() {
return Collections.emptyList();
}
@Override
public Constraint clone() {
return new GreaterEquationConstraint(getLeft().clone(), getRight().clone());
}
@Override
public List<VariableReference> getReferences() {
List<VariableReference> references = new ArrayList<>();
references.addAll(getLeft().getReferences());
references.addAll(getRight().getReferences());
return references;
}
}