choco.kernel.model.variables.tree
Class TreeNodeObject

java.lang.Object
  extended by choco.kernel.model.VariableArray
      extended by choco.kernel.model.ModelObject
          extended by choco.kernel.model.variables.AbstractVariable
              extended by choco.kernel.model.variables.MultipleVariables
                  extended by choco.kernel.model.variables.tree.TreeNodeObject
All Implemented Interfaces:
IPretty, IIndex, IConstraintList, IFindManager, IOptions, IVariableArray, IHook, Variable, Serializable, Comparable

public class TreeNodeObject
extends MultipleVariables

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class choco.kernel.model.VariableArray
VariableArray.VConstraintsDataStructure
 
Field Summary
protected  int idx
          index of the current node
protected  IntegerVariable inDegree
          an integer variable that depicts the indegree of the current node
protected  IntegerVariable successors
          an integer variable that depicts the potential sucessor nodes of the current node (by indices)
protected  IntegerVariable timeWindow
          an integer variable that depicts the starting time from the current node
 
Fields inherited from class choco.kernel.model.variables.MultipleVariables
enableStorage
 
Fields inherited from class choco.kernel.model.variables.AbstractVariable
name, type
 
Fields inherited from class choco.kernel.model.VariableArray
NO_CONSTRAINTS
 
Fields inherited from interface choco.kernel.model.variables.Variable
LOGGER
 
Fields inherited from interface choco.kernel.model.variables.IHook
NO_HOOK
 
Constructor Summary
TreeNodeObject(int idx, int nbNodes, List<BitSet[]> graphs, List<int[][]> matrix)
           
 
Method Summary
 int getIdx()
           
 IntegerVariable getInDegree()
           
 IntegerVariable getSuccessors()
           
 IntegerVariable getTimeWindow()
           
 
Methods inherited from class choco.kernel.model.variables.MultipleVariables
findManager, getConstraintManager, getExpressionManager, getVariableManager, isEquivalentTo, isStored
 
Methods inherited from class choco.kernel.model.variables.AbstractVariable
_addConstraint, _contains, _removeConstraint, compareTo, getConstraint, getConstraintIterator, getConstraintIterator, getConstraints, getHook, getName, getNbConstraint, getNbConstraint, getVariableType, pretty, removeConstraints, resetHook, setHook, setName, throwConstantException, toString
 
Methods inherited from class choco.kernel.model.ModelObject
addOption, addOptions, addOptions, addOptions, addOptions, containsOption, getIndex, getOptions, hashCode
 
Methods inherited from class choco.kernel.model.VariableArray
cancelExtractVariables, doExtractVariables, extractVariables, forceExtractVariables, getNbVars, getVariable, getVariableIterator, getVariables, replaceBy, replaceByConstantAt, setVariables, setVariables
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface choco.kernel.model.IVariableArray
extractVariables, getNbVars, getVariable, getVariableIterator, getVariables, replaceBy
 
Methods inherited from interface choco.kernel.common.IIndex
getIndex
 
Methods inherited from interface choco.kernel.model.IOptions
addOption, addOptions, addOptions, addOptions, addOptions, containsOption, getOptions
 

Field Detail

idx

protected int idx
index of the current node


successors

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


inDegree

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


timeWindow

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

Constructor Detail

TreeNodeObject

public TreeNodeObject(int idx,
                      int nbNodes,
                      List<BitSet[]> graphs,
                      List<int[][]> matrix)
Method Detail

getSuccessors

public IntegerVariable getSuccessors()

getIdx

public int getIdx()

getInDegree

public IntegerVariable getInDegree()

getTimeWindow

public IntegerVariable getTimeWindow()


Copyright © 2012. All Rights Reserved.