Package org.projog.clp
Class ClpConstraintStore
java.lang.Object
org.projog.clp.ClpConstraintStore
- All Implemented Interfaces:
ConstraintStore,ReadConstraintStore
A collection of constraints and variables that represent a problem domain.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final Constraint[]private final intprivate final Variable[]private final VariableState[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) ClpConstraintStorecopy()private VariableStatelonggetMax(Expression id) longgetMin(Expression id) longgetVariable(int idx) intgetVariableState(int idx) booleanresolve()setMax(Expression id, long max) setMin(Expression id, long min) setNot(Expression id, long not) setValue(Expression id, long value) private ExpressionResult
-
Field Details
-
variableCtr
private final int variableCtr -
variables
-
variableStates
-
constraintCtr
private final int constraintCtr -
constraints
-
constraintsByVariable
-
constraintQueue
-
-
Constructor Details
-
ClpConstraintStore
-
ClpConstraintStore
-
-
Method Details
-
copy
ClpConstraintStore copy() -
getVariablesCount
public int getVariablesCount() -
getVariable
-
getVariableState
-
getValue
-
update
-
resolve
public boolean resolve() -
getExpression
-
getMin
- Specified by:
getMinin interfaceReadConstraintStore
-
getMax
- Specified by:
getMaxin interfaceReadConstraintStore
-
setValue
- Specified by:
setValuein interfaceConstraintStore
-
setMin
- Specified by:
setMinin interfaceConstraintStore
-
setMax
- Specified by:
setMaxin interfaceConstraintStore
-
setNot
- Specified by:
setNotin interfaceConstraintStore
-