java.lang.Object
java.lang.Record
org.maxicp.modeling.algebra.scheduling.FlatCumulFunction
- All Implemented Interfaces:
CumulFunction
Flat Elementary Cumul Function
- Author:
- Pierre Schaus, Charles Thomas, Augustin Delecluse
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aFlatCumulFunctionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.heightAtEnd(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 functionfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FlatCumulFunction
public FlatCumulFunction()Creates an instance of aFlatCumulFunctionrecord class.
-
-
Method Details
-
heightAtStart
Description copied from interface:CumulFunctionReturns anIntExpressionrepresenting the height of the cumul function at the start of the interval variable given in parameter.- Specified by:
heightAtStartin interfaceCumulFunction- Parameters:
interval- anIntervalVar- Returns:
- an int expression representing the height of the cumul function at the start of interval
-
heightAtEnd
Description copied from interface:CumulFunctionReturns anIntExpressionrepresenting the height of the cumul function at the end of the interval variable given in parameter.- Specified by:
heightAtEndin interfaceCumulFunction- Parameters:
interval- anIntervalVar- Returns:
- an int expression representing the height of the cumul function at the end of interval
-
inScope
Description copied from interface:CumulFunctionReturns whether the interval var given in parameter contributes to the cumul function- Specified by:
inScopein interfaceCumulFunction- Parameters:
interval- anIntervalVar- Returns:
- a boolean that indicates if interval contributes to the cumul function.
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal.
-