Module org.maxicp

Class SumCumulFunction

java.lang.Object
org.maxicp.modeling.algebra.scheduling.SumCumulFunction
All Implemented Interfaces:
CumulFunction

public class SumCumulFunction extends Object implements CumulFunction
Sum of one or more Cumul Functions.
Author:
Pierre Schaus, Charles Thomas, Augustin Delecluse
  • Field Details

  • Constructor Details

    • SumCumulFunction

      public SumCumulFunction(CumulFunction... functions)
  • Method Details

    • inScope

      public boolean inScope(IntervalVar interval)
      Description copied from interface: CumulFunction
      Returns whether the interval var given in parameter contributes to the cumul function
      Specified by:
      inScope in interface CumulFunction
      Parameters:
      interval - an IntervalVar
      Returns:
      a boolean that indicates if interval contributes to the cumul function.
    • heightAtStart

      public IntExpression heightAtStart(IntervalVar interval)
      Description copied from interface: CumulFunction
      Returns an IntExpression representing the height of the cumul function at the start of the interval variable given in parameter.
      Specified by:
      heightAtStart in interface CumulFunction
      Parameters:
      interval - an IntervalVar
      Returns:
      an int expression representing the height of the cumul function at the start of interval
    • heightAtEnd

      public IntExpression heightAtEnd(IntervalVar interval)
      Description copied from interface: CumulFunction
      Returns an IntExpression representing the height of the cumul function at the end of the interval variable given in parameter.
      Specified by:
      heightAtEnd in interface CumulFunction
      Parameters:
      interval - an IntervalVar
      Returns:
      an int expression representing the height of the cumul function at the end of interval