Class SMTableDataObjectImpl

    • Constructor Detail

      • SMTableDataObjectImpl

        public SMTableDataObjectImpl()
    • Method Detail

      • addSimilarity

        public void addSimilarity​(AtomicObject queryObject,
                                  AtomicObject caseObject,
                                  double similarity)
        Description copied from interface: SMTableDataObject
        Adds a similarity measure for the query and case object.
        Specified by:
        addSimilarity in interface SMTableDataObject
        Parameters:
        queryObject - The query object.
        caseObject - The case object.
        similarity - The similarity value.
      • getSimilarity

        public Similarity getSimilarity​(AtomicObject queryObject,
                                        AtomicObject caseObject)
        Specified by:
        getSimilarity in interface SMTableDataObject
        Parameters:
        queryObject - The query object for that the similarity value is defined.
        caseObject - The case object for that the similarity value is defined.
        Returns:
        The similarity value for the given query and case object. If no value exists, null will be returned.
      • isSymmetric

        public boolean isSymmetric()
        Specified by:
        isSymmetric in interface SMTableDataObject
        Returns:
        true if the similarty value table is symetric.
      • setSymmetric

        public void setSymmetric​(boolean symmetric)
        Description copied from interface: SMTableDataObject
        The similarity table can be interpreted as a symmetric table. That means, that in general sim(query,case) is equal to sim(case,query) if a mapping to query/case or case/query is defined. If a mapping for both is defined it will be interpreted as exception of the symetry.
        Specified by:
        setSymmetric in interface SMTableDataObject
        Parameters:
        symmetric - If the table should be interpreted as symmetric table.
      • removeSimilarity

        public void removeSimilarity​(AtomicObject queryObject,
                                     AtomicObject caseObject)
        Description copied from interface: SMTableDataObject
        Removes the similarity value for the given query and case object. If no similarity value is defined nothing will be removed.
        Specified by:
        removeSimilarity in interface SMTableDataObject
        Parameters:
        queryObject - The query object for that the similarity value should be removed.
        caseObject - The case object for that the similarity value should be removed.