Module org.maxicp

Class StepAtEndCumulFunction

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

public class StepAtEndCumulFunction extends Object implements CumulFunction
Step at End Elementary Cumul Function.
Author:
Pierre Schaus, Charles Thomas, Augustin Delecluse
  • Field Details

    • interval

      public final IntervalVar interval
    • hMin

      public final int hMin
    • hMax

      public final int hMax
  • Constructor Details

    • StepAtEndCumulFunction

      public StepAtEndCumulFunction(IntervalVar interval, int hMin, int hMax)
  • Method Details

    • 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
    • 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.