public class MetaVariable
extends java.lang.Object
MetaVariables are objects used by MetaConstraintSolvers for backtracking search.
They contain ConstraintNetworks representing meta variables for the meta-CSP search.
A MetaVariable also has a reference to the MetaConstraint which was used
to obtain it.
MetaVariables are used internally by the MetaConstraintSolver and
should not be instantiated explicitly (hence the constructors are not accessible
outside this package).| Modifier and Type | Field and Description |
|---|---|
protected ConstraintNetwork |
mv |
| Modifier | Constructor and Description |
|---|---|
protected |
MetaVariable() |
|
MetaVariable(MetaConstraint df,
ConstraintNetwork mv)
Create a new
MetaVariable with a given MetaConstraint. |
|
MetaVariable(MetaConstraint metaConstraint,
ConstraintNetwork mv,
java.lang.String annotation)
Create a new
MetaVariable with a given MetaConstraint. |
| Modifier and Type | Method and Description |
|---|---|
ConstraintNetwork |
getConstraintNetwork()
|
MetaConstraint |
getMetaConstraint()
Get the
MetaConstraint that is responsible for defining this
MetaVariable. |
java.lang.String |
toString()
Get a
String representation of this MetaVariable. |
protected ConstraintNetwork mv
protected MetaVariable()
public MetaVariable(MetaConstraint df, ConstraintNetwork mv)
MetaVariable with a given MetaConstraint. The variable is represented as
a ConstraintNetwork.df - The MetaConstraint that created this MetaVariable.mv - The actual MetaVariable.public MetaVariable(MetaConstraint metaConstraint, ConstraintNetwork mv, java.lang.String annotation)
MetaVariable with a given MetaConstraint. The variable is represented as
a ConstraintNetwork.metaConstraint - The MetaConstraint that created this MetaVariable.mv - The actual MetaVariable.annotation - An annotation describing the MetaVariable.public MetaConstraint getMetaConstraint()
MetaConstraint that is responsible for defining this
MetaVariable.MetaConstraint that is responsible for defining this
MetaVariable.public ConstraintNetwork getConstraintNetwork()
Variables and Constraints that
define this MetaVariable.public java.lang.String toString()
String representation of this MetaVariable.toString in class java.lang.Object