org.cpsolver.ifs.assignment

## Class InheritedAssignmentArray<V extends Variable<V,T>,T extends Value<V,T>>

- java.lang.Object
- - org.cpsolver.ifs.assignment.AssignmentAbstract<V,T>
  - - org.cpsolver.ifs.assignment.AssignmentArray<V,T>
    - - org.cpsolver.ifs.assignment.InheritedAssignmentArray<V,T>

- All Implemented Interfaces:
    Assignment<V,T>, InheritedAssignment<V,T>

      public class InheritedAssignmentArray<V extends Variable<V,T>,T extends Value<V,T>>
      extends AssignmentArray<V,T>
      implements InheritedAssignment<V,T>

- - ### Field Summary

    - ### Fields inherited from class org.cpsolver.ifs.assignment.AssignmentArray

      `iAssignments, iIteration`

    - ### Fields inherited from class org.cpsolver.ifs.assignment.AssignmentAbstract

      `iContexts, iHasInitialzedContext`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `InheritedAssignmentArray(Solution<V,T> parent, int index)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getIndex()` Assignment index.
    `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)

    - ### Methods inherited from class org.cpsolver.ifs.assignment.AssignmentArray

      `assignedValues, assignedVariables, getIteration, getValueInternal, nrAssignedVariables, setValueInternal`

    - ### Methods inherited from class org.cpsolver.ifs.assignment.AssignmentAbstract

      `assign, assign, clearContext, ensureInitializedContext, getAssignmentContext, getValue, nrUnassignedVariables, unassign, unassign, unassignedVariables`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface org.cpsolver.ifs.assignment.Assignment

      `assign, assignedValues, assignedVariables, clearContext, getAssignmentContext, getIteration, getValue, nrAssignedVariables, nrUnassignedVariables, unassign, unassign, unassignedVariables`

- - ### Constructor Detail

    - #### InheritedAssignmentArray

          public InheritedAssignmentArray(Solution<V,T> parent,
                                          int index)

  - ### Method Detail

    - #### getIndex

          public int getIndex()

      Description copied from interface: `Assignment`
      Assignment index. Unique identification of the assignment, starting with zero. This can be used to increase the speed of the search by storing individual values on the variables and an array (indexed by this number).
      Specified by:
        `getIndex` in interface `Assignment<V extends Variable<V,T>,T extends Value<V,T>>`
      Overrides:
        `getIndex` in class `AssignmentAbstract<V extends Variable<V,T>,T extends Value<V,T>>`
      Returns:
        assignment index, -1 if not to be used

    - #### getParentAssignment

          public Assignment<V,T> getParentAssignment()

      Description copied from interface: `InheritedAssignment`
      Return parent assignment.
      Specified by:
        `getParentAssignment` in interface `InheritedAssignment<V extends Variable<V,T>,T extends Value<V,T>>`
      Returns:
        parent assignment

    - #### getVersion

          public long getVersion()

      Description copied from interface: `InheritedAssignment`
      Version of the assignment (usually the iteration of the parent assignment at the time of creation)
      Specified by:
        `getVersion` in interface `InheritedAssignment<V extends Variable<V,T>,T extends Value<V,T>>`
      Returns:
        version of the inherited assignment