Class DefaultCompatibilityMeasure

  • All Implemented Interfaces:
    CompatibilityMeasure

    public class DefaultCompatibilityMeasure
    extends java.lang.Object
    implements CompatibilityMeasure
    This class represents the default compatibility measure that uses a coherence measure.
    Author:
    Matthias Thimm
    • Constructor Detail

      • DefaultCompatibilityMeasure

        public DefaultCompatibilityMeasure​(AbstractCoherenceMeasure coherenceMeasure)
        Creates a new compatibility measure.
        Parameters:
        coherenceMeasure - the coherence measure used for computing compatibility.
    • Method Detail

      • compatibility

        public double compatibility​(java.util.List<MarkovLogicNetwork> mlns,
                                    AbstractMlnReasoner reasoner,
                                    java.util.List<FolSignature> signatures)
        Description copied from interface: CompatibilityMeasure
        Measures the compatibility of the given MLNs wrt. the given signatures using the given reasoner.
        Specified by:
        compatibility in interface CompatibilityMeasure
        Parameters:
        mlns - a list of MLNs.
        reasoner - some reasoner.
        signatures - a set of signatures, one for each MLN.
        Returns:
        the compatibility value
      • toString

        public java.lang.String toString()
        Specified by:
        toString in interface CompatibilityMeasure
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object