Record Class DirectedCrossReferenceInfo
java.lang.Object
java.lang.Record
tools.refinery.store.reasoning.translator.crossreference.DirectedCrossReferenceInfo
public record DirectedCrossReferenceInfo(PartialRelation sourceType, Multiplicity sourceMultiplicity, PartialRelation targetType, Multiplicity targetMultiplicity, TruthValue defaultValue, ConcretizationSettings concretizationSettings, Set<PartialRelation> supersets, Set<PartialRelation> oppositeSupersets)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDirectedCrossReferenceInfo(PartialRelation sourceType, Multiplicity sourceMultiplicity, PartialRelation targetType, Multiplicity targetMultiplicity, TruthValue defaultValue, ConcretizationSettings concretizationSettings, Set<PartialRelation> supersets, Set<PartialRelation> oppositeSupersets) Creates an instance of aDirectedCrossReferenceInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconcretizationSettingsrecord component.Returns the value of thedefaultValuerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theoppositeSupersetsrecord component.Returns the value of thesourceMultiplicityrecord component.Returns the value of thesourceTyperecord component.Returns the value of thesupersetsrecord component.Returns the value of thetargetMultiplicityrecord component.Returns the value of thetargetTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DirectedCrossReferenceInfo
public DirectedCrossReferenceInfo(PartialRelation sourceType, Multiplicity sourceMultiplicity, PartialRelation targetType, Multiplicity targetMultiplicity, TruthValue defaultValue, ConcretizationSettings concretizationSettings, Set<PartialRelation> supersets, Set<PartialRelation> oppositeSupersets) Creates an instance of aDirectedCrossReferenceInforecord class.- Parameters:
sourceType- the value for thesourceTyperecord componentsourceMultiplicity- the value for thesourceMultiplicityrecord componenttargetType- the value for thetargetTyperecord componenttargetMultiplicity- the value for thetargetMultiplicityrecord componentdefaultValue- the value for thedefaultValuerecord componentconcretizationSettings- the value for theconcretizationSettingsrecord componentsupersets- the value for thesupersetsrecord componentoppositeSupersets- the value for theoppositeSupersetsrecord component
-
-
Method Details
-
isConstrained
public boolean isConstrained() -
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). -
sourceType
Returns the value of thesourceTyperecord component.- Returns:
- the value of the
sourceTyperecord component
-
sourceMultiplicity
Returns the value of thesourceMultiplicityrecord component.- Returns:
- the value of the
sourceMultiplicityrecord component
-
targetType
Returns the value of thetargetTyperecord component.- Returns:
- the value of the
targetTyperecord component
-
targetMultiplicity
Returns the value of thetargetMultiplicityrecord component.- Returns:
- the value of the
targetMultiplicityrecord component
-
defaultValue
Returns the value of thedefaultValuerecord component.- Returns:
- the value of the
defaultValuerecord component
-
concretizationSettings
Returns the value of theconcretizationSettingsrecord component.- Returns:
- the value of the
concretizationSettingsrecord component
-
supersets
Returns the value of thesupersetsrecord component.- Returns:
- the value of the
supersetsrecord component
-
oppositeSupersets
Returns the value of theoppositeSupersetsrecord component.- Returns:
- the value of the
oppositeSupersetsrecord component
-