choco.cp.solver.constraints.global.tree.structure.inputStructure
Class TreeParameters

java.lang.Object
  extended by choco.cp.solver.constraints.global.tree.structure.inputStructure.TreeParameters

public class TreeParameters
extends Object


Field Summary
protected  int nbNodes
          total number of nodes involved in the graph
protected  Node[] nodes
          table of nodes involved in the graphs composing a tree constraint
protected  IntDomainVar nproper
          an integer variable that depicts the number of proper tree allowed to partition the graph
protected  IntDomainVar ntree
          an integer variable that depicts the number of tree allowed to partition the graph
protected  IntDomainVar objective
          a bounded variable that depicts the total cost of the partition
protected  Solver solver
          Choco solver embedding the tree constraint
protected  IStateInt[][] travelTime
          the travel time matrix
 
Constructor Summary
TreeParameters(Solver solver, int nbNodes, IntDomainVar ntree, IntDomainVar nproper, IntDomainVar objective, List<BitSet[]> graphs, List<int[][]> matrix, int[][] travel)
          constructor: build the input data of a tree constraint.
TreeParameters(Solver solver, int nbNodes, IntDomainVar ntree, IntDomainVar nproper, IntDomainVar objective, Node[] nodes, int[][] travel)
          constructor: build the input data of a tree constraint.
 
Method Summary
 IntDomainVar[] getAllVars()
          build a table of all the integer variables involved in a tree constraint
 int getNbNodes()
           
 Node[] getNodes()
          the table of all the nodes object that compose the input structure TreeParameters of a tree constraint
 IntDomainVar getNproper()
           
 IntDomainVar getNtree()
           
 IntDomainVar getObjective()
           
 Solver getSolver()
           
 IntDomainVar[] getSuccVars()
          build a table of all the successor variables that depict the graph to partition
 IStateInt[][] getTravelTime()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

solver

protected Solver solver
Choco solver embedding the tree constraint


nbNodes

protected int nbNodes
total number of nodes involved in the graph


nodes

protected Node[] nodes
table of nodes involved in the graphs composing a tree constraint


ntree

protected IntDomainVar ntree
an integer variable that depicts the number of tree allowed to partition the graph


nproper

protected IntDomainVar nproper
an integer variable that depicts the number of proper tree allowed to partition the graph


objective

protected IntDomainVar objective
a bounded variable that depicts the total cost of the partition


travelTime

protected IStateInt[][] travelTime
the travel time matrix

Constructor Detail

TreeParameters

public TreeParameters(Solver solver,
                      int nbNodes,
                      IntDomainVar ntree,
                      IntDomainVar nproper,
                      IntDomainVar objective,
                      List<BitSet[]> graphs,
                      List<int[][]> matrix,
                      int[][] travel)
               throws ContradictionException
constructor: build the input data of a tree constraint.

Parameters:
solver - the Choco problem who uses the current tree constraint
nbNodes - the total number of nodes involved in the different graphs
ntree - an integer variable that depicts the number of tree allowed to partition the graph
nproper - an integer variable that depicts the number of proper tree allowed to partition the graph
objective - a bounded variable that depicts the total cost of the partition
graphs - a list of graphs: [0] the graph to partition, [1] the precedence graph, [2] the conditional precedence graph and [3] the incomparability graph
matrix - a list of integer matrix: [0] the indegree of each node and [1] the starting time from each node
travel - the travel time matrix
Throws:
ContradictionException

TreeParameters

public TreeParameters(Solver solver,
                      int nbNodes,
                      IntDomainVar ntree,
                      IntDomainVar nproper,
                      IntDomainVar objective,
                      Node[] nodes,
                      int[][] travel)
constructor: build the input data of a tree constraint.

Parameters:
solver - the Choco solver who uses the current tree constraint
nbNodes - the total number of nodes involved in the different graphs
ntree - an integer variable that depicts the number of tree allowed to partition the graph
nproper - an integer variable that depicts the number of proper tree allowed to partition the graph
objective - a bounded variable that depicts the total cost of the partition
nodes - the nodes and its attributes
travel - the travel time matrix
Throws:
ContradictionException
Method Detail

getAllVars

public IntDomainVar[] getAllVars()
build a table of all the integer variables involved in a tree constraint

Returns:
a table of all the integer variables involved in a tree constraint

getSuccVars

public IntDomainVar[] getSuccVars()
build a table of all the successor variables that depict the graph to partition

Returns:
a table of all the successor variables that depict the graph to partition

getSolver

public Solver getSolver()

getNbNodes

public int getNbNodes()

getNodes

public Node[] getNodes()
the table of all the nodes object that compose the input structure TreeParameters of a tree constraint

Returns:
a table of all the nodes object associated with the input structure of a tree constraint

getNtree

public IntDomainVar getNtree()

getNproper

public IntDomainVar getNproper()

getObjective

public IntDomainVar getObjective()

getTravelTime

public IStateInt[][] getTravelTime()


Copyright © 2012. All Rights Reserved.