|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchoco.cp.solver.constraints.global.tree.structure.internalStructure.StructuresAdvisor
public class StructuresAdvisor
An advisor that manages the several data structures involved in the constraint.
Field Summary | |
---|---|
protected StoredBitSetGraph |
condPrecs
data structure related to the graph representation of the conditional partial order |
protected CostStructure |
costStruct
data structures related to the costs associated with each arcs of the graph |
protected DegreeStructure |
degree
data structure related to the degree constraints related to each node |
protected DominatorView |
doms
data structure related to the graph representation of the dominator nodes of this graph |
protected StoredBitSetGraph |
incomp
data structure related to the graph representation of the incomparability constraint |
protected VarGraphView |
inputGraph
data structure related to the graph representation of the input graph |
protected int |
nbNodes
total number of nodes involved in the graph |
protected Node[] |
nodes
|
protected PrecsGraphView |
precs
data structure related to the graph representation of the partial order |
protected Solver |
solver
Choco solver embedding the tree constraint |
protected TreeParameters |
tree
attributes |
protected boolean |
updateDegree
|
Constructor Summary | |
---|---|
StructuresAdvisor(Solver solver,
TreeParameters tree)
constructor: build an advisor for the internal data structures |
Method Summary | |
---|---|
void |
applyStructure()
the main method that allows to update the degree constraint and the cost structure according to the current state of the graph. |
StoredBitSetGraph |
getCondPrecs()
|
CostStructure |
getCostStruct()
|
DegreeStructure |
getDegree()
|
DominatorView |
getDoms()
|
StoredBitSetGraph |
getIncomp()
|
VarGraphView |
getInputGraph()
|
PrecsGraphView |
getPrecs()
|
boolean |
isUpdateDegree()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Solver solver
protected TreeParameters tree
protected Node[] nodes
protected int nbNodes
protected DegreeStructure degree
protected boolean updateDegree
protected VarGraphView inputGraph
protected DominatorView doms
protected PrecsGraphView precs
protected StoredBitSetGraph condPrecs
protected StoredBitSetGraph incomp
protected CostStructure costStruct
Constructor Detail |
---|
public StructuresAdvisor(Solver solver, TreeParameters tree)
solver
- the Choco solver who uses the current tree constraint.tree
- the input data structure available in the structure.inputStructure
package.Method Detail |
---|
public void applyStructure() throws ContradictionException
ContradictionException
public CostStructure getCostStruct()
public boolean isUpdateDegree()
public DegreeStructure getDegree()
public StoredBitSetGraph getIncomp()
public PrecsGraphView getPrecs()
public DominatorView getDoms()
public StoredBitSetGraph getCondPrecs()
public VarGraphView getInputGraph()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |