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

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

public class Node
extends Object


Field Summary
protected  IStateBitSet condSuccessors
          the set of potential mandatory successors of the current node
protected  int idx
          index of the current node
protected  IStateBitSet incomparableNodes
          the set of incomparable nodes with the current node
protected  IntDomainVar inDegree
          an integer variable that depicts the indegree of the current node
protected  IStateBitSet mandatorySuccessors
          the set of mandatory successors of the current node
protected  IntDomainVar successors
          an integer variable that depicts the potential sucessor nodes of the current node (by indices)
protected  IntDomainVar timeWindow
          an integer variable that depicts the starting time from the current node
 
Constructor Summary
Node(Solver solver, int nbNodes, int idx, IntDomainVar successor, IntDomainVar inDegree, IntDomainVar timeWindow, List<BitSet[]> graphs)
          constructor: build a node and its associated attributes
Node(Solver solver, int nbNodes, int idx, List<BitSet[]> graphs, List<int[][]> matrix)
          constructor: build a node and its associated attributes
 
Method Summary
 IStateBitSet getCondSuccessors()
           
 int getIdx()
           
 IStateBitSet getIncomparableNodes()
           
 IntDomainVar getInDegree()
           
 IStateBitSet getMandatorySuccessors()
           
 IntDomainVar getSuccessors()
           
 IntDomainVar getTimeWindow()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

idx

protected int idx
index of the current node


successors

protected IntDomainVar successors
an integer variable that depicts the potential sucessor nodes of the current node (by indices)


inDegree

protected IntDomainVar inDegree
an integer variable that depicts the indegree of the current node


timeWindow

protected IntDomainVar timeWindow
an integer variable that depicts the starting time from the current node


mandatorySuccessors

protected IStateBitSet mandatorySuccessors
the set of mandatory successors of the current node


condSuccessors

protected IStateBitSet condSuccessors
the set of potential mandatory successors of the current node


incomparableNodes

protected IStateBitSet incomparableNodes
the set of incomparable nodes with the current node

Constructor Detail

Node

public Node(Solver solver,
            int nbNodes,
            int idx,
            IntDomainVar successor,
            IntDomainVar inDegree,
            IntDomainVar timeWindow,
            List<BitSet[]> graphs)
constructor: build a node and its associated attributes

Parameters:
solver - the Choco solver who uses the current tree constraint
nbNodes - the total number of nodes involved in the different graphs
idx - index of the current node
successor - the potential sucessor nodes of the current node
inDegree - the indegree of the current node
timeWindow - the starting time from the current node
graphs - a list of graphs: [0] the graph to partition, [1] the precedence graph, [2] the conditional precedence graph and [3] the incomparability graph
Throws:
ContradictionException

Node

public Node(Solver solver,
            int nbNodes,
            int idx,
            List<BitSet[]> graphs,
            List<int[][]> matrix)
     throws ContradictionException
constructor: build a node and its associated attributes

Parameters:
solver - the Choco solver who uses the current tree constraint
nbNodes - the total number of nodes involved in the different graphs
idx - index of the current node
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
Throws:
ContradictionException
Method Detail

getIdx

public int getIdx()

getSuccessors

public IntDomainVar getSuccessors()

getInDegree

public IntDomainVar getInDegree()

getTimeWindow

public IntDomainVar getTimeWindow()

getMandatorySuccessors

public IStateBitSet getMandatorySuccessors()

getCondSuccessors

public IStateBitSet getCondSuccessors()

getIncomparableNodes

public IStateBitSet getIncomparableNodes()


Copyright © 2012. All Rights Reserved.