Record Class ExternalAlgorithmHaltingConditions
java.lang.Object
java.lang.Record
fr.inria.rules.integraal.component_builder.externalHaltingConditions.ExternalAlgorithmHaltingConditions
- Record Components:
rank- the maximum depth of the reasoning level (e.g., for chase or rewriting, the max number of breadth-first reasoning steps). Defaults to a fixed value if null.timeout- the maximum duration before the algorithm is forcibly stopped. Defaults to a fixed value if null.
-
Constructor Summary
ConstructorsConstructorDescriptionCustom constructor which handles an array of external handling conditionsExternalAlgorithmHaltingConditions(Integer rank, Duration timeout) Custom constructor with default handlingCustom constructor which handles a list of external handling conditions -
Method Summary
Modifier and TypeMethodDescriptionReturns the defaultExternalAlgorithmHaltingConditionsinstance with default rank and timeout values.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.rank()Returns the value of therankrecord component.timeout()Returns the value of thetimeoutrecord component.final StringtoString()Returns a string representation of this record class.withModified(Integer newRank, Duration newTimeout) Returns a new instance ofExternalAlgorithmHaltingConditionswith optional modifications.
-
Constructor Details
-
ExternalAlgorithmHaltingConditions
-
ExternalAlgorithmHaltingConditions
Custom constructor which handles a list of external handling conditions- Parameters:
conditions- the external halting conditions to extract values from
-
ExternalAlgorithmHaltingConditions
Custom constructor which handles an array of external handling conditions- Parameters:
conds- the external halting conditions to extract values from
-
-
Method Details
-
withModified
Returns a new instance ofExternalAlgorithmHaltingConditionswith optional modifications.- Parameters:
newRank- the new rank to set, ornullto keep the existing rank.newTimeout- the new timeout to set, ornullto keep the existing timeout.- Returns:
- a new
ExternalAlgorithmHaltingConditionsinstance with the modified values.
-
defaultConditions
Returns the defaultExternalAlgorithmHaltingConditionsinstance with default rank and timeout values.- Returns:
- a default instance of
ExternalAlgorithmHaltingConditions.
-
toString
-
hashCode
-
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). -
rank
-
timeout
-