Class LazyCombiner

java.lang.Object
it.univr.di.labeledvalue.lazy.LazyWeight
it.univr.di.labeledvalue.lazy.LazyCombiner
Direct Known Subclasses:
LazyMax

public class LazyCombiner
extends LazyWeight
Represent the sum of two other LazyWeight
Author:
posenato
  • Constructor Details

    • LazyCombiner

      public LazyCombiner​(org.apache.commons.math3.fraction.Fraction x1, LazyWeight op1, LazyWeight op2, boolean onlyIfNeg, boolean onlyIfNegOp1, boolean onlyIfNegOp2)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class LazyWeight
    • isOnlyIfNeg

      public boolean isOnlyIfNeg()
      Returns:
      the onlyIfNeg
    • getX

      public org.apache.commons.math3.fraction.Fraction getX()
      Specified by:
      getX in class LazyWeight
      Returns:
      the x
    • isOnlyIfNegOp1

      public boolean isOnlyIfNegOp1()
      Returns:
      the onlyIfNegOp1
    • isOnlyIfNegOp2

      public boolean isOnlyIfNegOp2()
      Returns:
      the onlyIfNegOp2
    • getValue

      public double getValue()
      Specified by:
      getValue in class LazyWeight
    • setX

      public void setX​(org.apache.commons.math3.fraction.Fraction newX)
      Specified by:
      setX in class LazyWeight