Record Class SmtRule
java.lang.Object
java.lang.Record
tools.refinery.store.reasoning.smt.SmtRule
public record SmtRule(RelationalQuery precondition, Term<TruthValue> assertedTerm, ConcretenessSpecification concreteness)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSmtRule(RelationalQuery precondition, Term<TruthValue> assertedTerm) SmtRule(RelationalQuery precondition, Term<TruthValue> assertedTerm, ConcretenessSpecification concreteness) Creates an instance of aSmtRulerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theassertedTermrecord component.Returns the value of theconcretenessrecord 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 thepreconditionrecord component.final StringtoString()Returns a string representation of this record class.withConcreteness(ConcretenessSpecification newConcreteness)
-
Constructor Details
-
SmtRule
-
SmtRule
public SmtRule(RelationalQuery precondition, Term<TruthValue> assertedTerm, ConcretenessSpecification concreteness) Creates an instance of aSmtRulerecord class.- Parameters:
precondition- the value for thepreconditionrecord componentassertedTerm- the value for theassertedTermrecord componentconcreteness- the value for theconcretenessrecord component
-
-
Method Details
-
withConcreteness
-
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). -
precondition
Returns the value of thepreconditionrecord component.- Returns:
- the value of the
preconditionrecord component
-
assertedTerm
Returns the value of theassertedTermrecord component.- Returns:
- the value of the
assertedTermrecord component
-
concreteness
Returns the value of theconcretenessrecord component.- Returns:
- the value of the
concretenessrecord component
-