- All Known Subinterfaces:
CPCumulFunction
- All Known Implementing Classes:
CPFlatCumulFunction,CPMinusCumulFunction,CPPlusCumulFunction,CPPulseCumulFunction,CPStepAtEndCumulFunction,CPStepAtStartCumulFunction,CPSumCumulFunction,FlatCumulFunction,MinusCumulFunction,PlusCumulFunction,PulseCumulFunction,StepAtEndCumulFunction,StepAtStartCumulFunction,SumCumulFunction
public interface CumulFunction
Represents a Cumulative Function as described in
Reasoning with conditional time-intervals. part ii: An algebraical model for resources Laborie, P., Rogerie, J., Shaw, P., VilĂm, P
See The article.
- Author:
- Pierre Schaus, Charles Thomas, Augustin Delecluse
-
Method Summary
Modifier and TypeMethodDescriptionheightAtEnd(IntervalVar interval) Returns anIntExpressionrepresenting the height of the cumul function at the end of the interval variable given in parameter.heightAtStart(IntervalVar interval) Returns anIntExpressionrepresenting the height of the cumul function at the start of the interval variable given in parameter.booleaninScope(IntervalVar interval) Returns whether the interval var given in parameter contributes to the cumul function
-
Method Details
-
heightAtStart
Returns anIntExpressionrepresenting the height of the cumul function at the start of the interval variable given in parameter.- Parameters:
interval- anIntervalVar- Returns:
- an int expression representing the height of the cumul function at the start of interval
-
heightAtEnd
Returns anIntExpressionrepresenting the height of the cumul function at the end of the interval variable given in parameter.- Parameters:
interval- anIntervalVar- Returns:
- an int expression representing the height of the cumul function at the end of interval
-
inScope
Returns whether the interval var given in parameter contributes to the cumul function- Parameters:
interval- anIntervalVar- Returns:
- a boolean that indicates if interval contributes to the cumul function.
-