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.InheritedAssignment
iContexts, 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, setValueInternal
assign, assign, assignedValues, clearContext, ensureInitializedContext, getAssignmentContext, getValue, nrAssignedVariables, nrUnassignedVariables, unassign, unassign, unassignedVariables
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
assign, assignedValues, assignedVariables, clearContext, getAssignmentContext, getIndex, getIteration, getValue, nrAssignedVariables, nrUnassignedVariables, unassign, unassign, unassignedVariables
public DefaultInheritedAssignment(Solution<V,T> parent, int index)
public Assignment<V,T> getParentAssignment()
InheritedAssignment
getParentAssignment
in interface InheritedAssignment<V extends Variable<V,T>,T extends Value<V,T>>
public long getVersion()
InheritedAssignment
getVersion
in interface InheritedAssignment<V extends Variable<V,T>,T extends Value<V,T>>