public class CombinedConstraints extends AbstractConstraint
Constructor and Description |
---|
CombinedConstraints() |
Modifier and Type | Method and Description |
---|---|
void |
addConstraints(java.lang.String[] conStrings)
Add multiple constraints to the combined constraints class
|
double |
checkConstraint()
Check if all constraints are satisfied
|
void |
setParameters(java.util.HashMap<java.lang.String,java.lang.Object> parameters)
Set the parameters of all the constraints added
|
public void addConstraints(java.lang.String[] conStrings)
conStrings
- array of name of the constraint classes neededpublic void setParameters(java.util.HashMap<java.lang.String,java.lang.Object> parameters)
setParameters
in class AbstractConstraint
parameters
- a hashmap contains all the objects needed for all constraintspublic double checkConstraint()
checkConstraint
in class AbstractConstraint