Package | Description |
---|---|
org.cpsolver.ifs.assignment |
An assignment holds current values of all the variables of a model.
|
org.cpsolver.ifs.assignment.context |
Assignment context can be used by a class (e.g., a constraint, a extension, a neighborhood selection, or a criterion) to
contain any assignment dependent data.
|
org.cpsolver.ifs.criteria |
IFS Criteria.
|
org.cpsolver.ifs.model |
IFS Model (description of a problem)
|
Modifier and Type | Method and Description |
---|---|
<C extends AssignmentContext> |
Assignment.clearContext(AssignmentContextReference<V,T,C> reference)
Clear an assignment context that is associated with the given a reference.
|
<C extends AssignmentContext> |
AssignmentAbstract.clearContext(AssignmentContextReference<V,T,C> reference) |
<C extends AssignmentContext> |
Assignment.getAssignmentContext(AssignmentContextReference<V,T,C> reference)
Assignment context for a reference.
|
<C extends AssignmentContext> |
AssignmentAbstract.getAssignmentContext(AssignmentContextReference<V,T,C> reference) |
Modifier and Type | Method and Description |
---|---|
AssignmentContextReference<V,T,C> |
AbstractClassWithContext.getAssignmentContextReference() |
AssignmentContextReference<V,T,C> |
BinaryConstraintWithContext.getAssignmentContextReference() |
AssignmentContextReference<V,T,C> |
ConstraintWithContext.getAssignmentContextReference() |
AssignmentContextReference<V,T,C> |
ExtensionWithContext.getAssignmentContextReference() |
AssignmentContextReference<V,T,C> |
HasAssignmentContext.getAssignmentContextReference()
Returns an assignment context reference
|
AssignmentContextReference<V,T,C> |
ModelWithContext.getAssignmentContextReference() |
AssignmentContextReference<V,T,C> |
NeighbourSelectionWithContext.getAssignmentContextReference() |
AssignmentContextReference<V,T,C> |
VariableWithContext.getAssignmentContextReference() |
Modifier and Type | Method and Description |
---|---|
<C extends AssignmentContext> |
AssignmentContextHolderArray.clearContext(AssignmentContextReference<V,T,C> reference) |
<C extends AssignmentContext> |
AssignmentContextHolderMap.clearContext(AssignmentContextReference<V,T,C> reference) |
<C extends AssignmentContext> |
DefaultParallelAssignmentContextHolder.clearContext(AssignmentContextReference<V,T,C> reference) |
<C extends AssignmentContext> |
DefaultSingleAssignmentContextHolder.clearContext(AssignmentContextReference<V,T,C> reference) |
<U extends AssignmentContext> |
AssignmentContextHolder.clearContext(AssignmentContextReference<V,T,U> reference)
Clear an assignment context that is associated with the given a reference.
|
<U extends AssignmentContext> |
AssignmentContextHolder.getAssignmentContext(Assignment<V,T> assignment,
AssignmentContextReference<V,T,U> reference)
Return assignment context for the given assignment and reference.
|
<U extends AssignmentContext> |
AssignmentContextHolderArray.getAssignmentContext(Assignment<V,T> assignment,
AssignmentContextReference<V,T,U> reference) |
<U extends AssignmentContext> |
AssignmentContextHolderMap.getAssignmentContext(Assignment<V,T> assignment,
AssignmentContextReference<V,T,U> reference) |
<U extends AssignmentContext> |
DefaultParallelAssignmentContextHolder.getAssignmentContext(Assignment<V,T> assignment,
AssignmentContextReference<V,T,U> reference) |
<U extends AssignmentContext> |
DefaultSingleAssignmentContextHolder.getAssignmentContext(Assignment<V,T> assignment,
AssignmentContextReference<V,T,U> reference) |
<U extends AssignmentContext> |
InheritedAssignmentContextHolder.getAssignmentContext(Assignment<V,T> assignment,
AssignmentContextReference<V,T,U> reference)
If the
getParent() implements the CanInheritContext interface, this
method will use the CanInheritContext.inheritAssignmentContext(Assignment, AssignmentContext) instead of the
HasAssignmentContext.createAssignmentContext(Assignment) to create a new context. |
void |
AbstractClassWithContext.setAssignmentContextReference(AssignmentContextReference<V,T,C> reference) |
void |
BinaryConstraintWithContext.setAssignmentContextReference(AssignmentContextReference<V,T,C> reference) |
void |
ConstraintWithContext.setAssignmentContextReference(AssignmentContextReference<V,T,C> reference) |
void |
ExtensionWithContext.setAssignmentContextReference(AssignmentContextReference<V,T,C> reference) |
void |
HasAssignmentContext.setAssignmentContextReference(AssignmentContextReference<V,T,C> reference)
Store an assignment context reference that was given for the class by the
Model.createReference(HasAssignmentContext) . |
void |
ModelWithContext.setAssignmentContextReference(AssignmentContextReference<V,T,C> reference) |
void |
NeighbourSelectionWithContext.setAssignmentContextReference(AssignmentContextReference<V,T,C> reference) |
void |
VariableWithContext.setAssignmentContextReference(AssignmentContextReference<V,T,C> reference) |
Modifier and Type | Method and Description |
---|---|
AssignmentContextReference<V,T,AbstractCriterion.ValueContext> |
AbstractCriterion.getAssignmentContextReference() |
Modifier and Type | Method and Description |
---|---|
void |
AbstractCriterion.setAssignmentContextReference(AssignmentContextReference<V,T,AbstractCriterion.ValueContext> reference) |
Modifier and Type | Method and Description |
---|---|
<C extends AssignmentContext> |
Model.createReference(HasAssignmentContext<V,T,C> parent)
Create a reference to an assignment context for a class that is in a need of one.
|
<C extends AssignmentContext> |
Model.removeReference(HasAssignmentContext<V,T,C> parent)
Remove a reference to an assignment context for the model
|