Class ThetaLambdaTree

java.lang.Object
org.jacop.constraints.cumulative.Tree
org.jacop.constraints.cumulative.ThetaLambdaTree

class ThetaLambdaTree extends Tree
Implements ThetaLambdaTree and operations on this tree for Cumulative constraint
Version:
4.8
  • Field Details

  • Constructor Details

    • ThetaLambdaTree

      public ThetaLambdaTree(IntVar capacity)
  • Method Details

    • buildTree

      public void buildTree(TaskView[] task)
    • computeLeaveVals

      private void computeLeaveVals(int i)
    • addToThetaInit

      private void addToThetaInit(int i)
    • computeNodeVals

      private void computeNodeVals(int i)
    • computeThetaNode

      private void computeThetaNode(int i)
    • clearNode

      void clearNode(int i)
      Specified by:
      clearNode in class Tree
    • updateThetaTree

      private void updateThetaTree(int i)
    • enableNode

      void enableNode(int i, long ci)
    • disableNode

      void disableNode(int i)
    • moveToLambda

      void moveToLambda(int i)
    • removeFromLambda

      void removeFromLambda(int i)
    • updateTree

      private void updateTree(int i)
    • calcEnvlc

      long calcEnvlc(long bound, long c)
    • getCapacity

      IntVar getCapacity()
    • setCapacity

      void setCapacity(IntVar capacity)
    • leaf

      ThetaLambdaNode leaf(int i)
    • isLeaf

      private boolean isLeaf(int i)
    • rootNode

      ThetaLambdaNode rootNode()
    • get

      ThetaLambdaNode get(int i)
    • printTree

      public void printTree(String name)
    • toGraph

      public String toGraph(String name)
    • treeToGraph

      StringBuffer treeToGraph(int i)
    • toString

      public String toString()
      Overrides:
      toString in class Object