V - VariableT - Valuepublic class DefaultInheritedAssignment<V extends Variable<V,T>,T extends Value<V,T>> extends DefaultParallelAssignment<V,T> implements InheritedAssignment<V,T>
DefaultParallelAssignment and creates
a full copy of the given assignment during its creation. This inherited assignment is slower than
OptimisticInheritedAssignment, but more reliable. Useful for small problems with a lot of constraints.InheritedAssignmentiContexts, iHasInitialzedContext| Constructor and Description |
|---|
DefaultInheritedAssignment(Solution<V,T> parent,
int index) |
| Modifier and Type | Method and Description |
|---|---|
Assignment<V,T> |
getParentAssignment()
Return parent assignment.
|
long |
getVersion()
Version of the assignment (usually the iteration of the parent assignment at the time of creation)
|
assignedVariables, getIndex, getIteration, getValueInternal, setValueInternalassign, assign, assignedValues, clearContext, ensureInitializedContext, getAssignmentContext, getValue, nrAssignedVariables, nrUnassignedVariables, unassign, unassign, unassignedVariablesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitassign, assignedValues, assignedVariables, clearContext, getAssignmentContext, getIndex, getIteration, getValue, nrAssignedVariables, nrUnassignedVariables, unassign, unassign, unassignedVariablespublic DefaultInheritedAssignment(Solution<V,T> parent, int index)
public Assignment<V,T> getParentAssignment()
InheritedAssignmentgetParentAssignment in interface InheritedAssignment<V extends Variable<V,T>,T extends Value<V,T>>public long getVersion()
InheritedAssignmentgetVersion in interface InheritedAssignment<V extends Variable<V,T>,T extends Value<V,T>>