java.lang.Object
java.lang.Record
org.maxicp.modeling.algebra.bool.EndBefore
- All Implemented Interfaces:
Serializable,BoolExpression,SymbolicBoolExpression,Expression,IntExpression,SymbolicIntExpression,NonLeafExpressionNode
public record EndBefore(IntervalVar intervalVar, IntExpression end)
extends Record
implements SymbolicBoolExpression, NonLeafExpressionNode
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEndBefore(IntervalVar intervalVar, int end) EndBefore(IntervalVar intervalVar, IntExpression end) Creates an instance of aEndBeforerecord class. -
Method Summary
Modifier and TypeMethodDescriptionCollection<? extends Expression> Should be implemented by all subclasses, but not used directly.booleanend()Returns the value of theendrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theintervalVarrecord component.booleanisFixed()True if the expression is fixedApply a function on all sub-expressions of this expression and returns a new expression of the same type.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.maxicp.modeling.algebra.bool.BoolExpression
reifyMethods inherited from interface org.maxicp.modeling.algebra.Expression
subexpressionsMethods inherited from interface org.maxicp.modeling.algebra.integer.IntExpression
showMethods inherited from interface org.maxicp.modeling.algebra.NonLeafExpressionNode
getModelProxyMethods inherited from interface org.maxicp.modeling.algebra.bool.SymbolicBoolExpression
defaultContains, defaultEvaluate, defaultFillArray, defaultMax, defaultMin, defaultSize, evaluateBool
-
Constructor Details
-
EndBefore
-
EndBefore
Creates an instance of aEndBeforerecord class.- Parameters:
intervalVar- the value for theintervalVarrecord componentend- the value for theendrecord component
-
-
Method Details
-
defaultEvaluateBool
- Specified by:
defaultEvaluateBoolin interfaceSymbolicBoolExpression- Throws:
VariableNotFixedException
-
isFixed
public boolean isFixed()Description copied from interface:ExpressionTrue if the expression is fixed- Specified by:
isFixedin interfaceExpression- Specified by:
isFixedin interfaceNonLeafExpressionNode
-
computeSubexpressions
Description copied from interface:ExpressionShould be implemented by all subclasses, but not used directly. Use subexpressions() instead, which is a cached version of this. Returns a collection that contains all sub-expressions of this expression. It should not be modified. In practice, it should actually be unmutable or a copy.- Specified by:
computeSubexpressionsin interfaceExpression
-
mapSubexpressions
Description copied from interface:ExpressionApply a function on all sub-expressions of this expression and returns a new expression of the same type. This function should return a value that is of the same class as the object that was given to it.- Specified by:
mapSubexpressionsin interfaceExpression- Specified by:
mapSubexpressionsin interfaceIntExpression
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
intervalVar
Returns the value of theintervalVarrecord component.- Returns:
- the value of the
intervalVarrecord component
-
end
Returns the value of theendrecord component.- Returns:
- the value of the
endrecord component
-