Record Class TheoryRule
java.lang.Object
java.lang.Record
tools.refinery.store.reasoning.theory.TheoryRule
public record TheoryRule(RelationalQuery precondition, Term<TruthValue> assertedTerm, ConcretenessSpecification concretenessSpecification)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTheoryRule(RelationalQuery precondition, Term<TruthValue> assertedTerm) TheoryRule(RelationalQuery precondition, Term<TruthValue> assertedTerm, ConcretenessSpecification concretenessSpecification) Creates an instance of aTheoryRulerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theassertedTermrecord component.Returns the value of theconcretenessSpecificationrecord 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
-
TheoryRule
-
TheoryRule
public TheoryRule(RelationalQuery precondition, Term<TruthValue> assertedTerm, ConcretenessSpecification concretenessSpecification) Creates an instance of aTheoryRulerecord class.- Parameters:
precondition- the value for thepreconditionrecord componentassertedTerm- the value for theassertedTermrecord componentconcretenessSpecification- the value for theconcretenessSpecificationrecord 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
-
concretenessSpecification
Returns the value of theconcretenessSpecificationrecord component.- Returns:
- the value of the
concretenessSpecificationrecord component
-