Class DetailMatchResult

java.lang.Object
com.aquima.interactions.matching.result.DetailMatchResult
All Implemented Interfaces:
IDetailMatchResult

public class DetailMatchResult extends Object implements IDetailMatchResult
This object contains the result of a detail match.
Since:
6.2
Author:
O. Kerpershoek, F. van der Meer
  • Constructor Details

    • DetailMatchResult

      public DetailMatchResult(String caseId)
      Constructs a detail match result for a specific case.
      Parameters:
      caseId - The ID of the case for which the detail match result was created.
  • Method Details

    • getCaseId

      public String getCaseId()
      Description copied from interface: IDetailMatchResult
      This method returns the name of the case that was matched.
      Specified by:
      getCaseId in interface IDetailMatchResult
      Returns:
      the name of the case that was matched.
    • getScore

      public int getScore()
      Description copied from interface: IDetailMatchResult
      This method returns the score of the case.
      Specified by:
      getScore in interface IDetailMatchResult
      Returns:
      the score of the case.
    • getScore

      public IAttributeScore getScore(String attributeName)
      Description copied from interface: IDetailMatchResult
      This method returns the match information for the specified attribute.
      Specified by:
      getScore in interface IDetailMatchResult
      Parameters:
      attributeName - The attribute for which detailed match information is requested.
      Returns:
      Detailed match information of the specified attribute.
    • setScore

      public void setScore(int score)
      This method may be used to set the score of the case.
      Parameters:
      score - The score of the case.
    • getMatchedAttributes

      public String[] getMatchedAttributes()
      Description copied from interface: IDetailMatchResult
      This method returns an array containing the names of the attributes that were matched to calculate the score of this case.
      Specified by:
      getMatchedAttributes in interface IDetailMatchResult
      Returns:
      An array containing the names of the attributes that were matched.
    • addAttributeScore

      public void addAttributeScore(AttributeScore attrScore)
      This method may be used to add the score details of an attribute.
      Parameters:
      attrScore - Object containing the score details of an attribute.
    • setScoreDetails

      public void setScoreDetails(String attribute, IAttributeScoreDetails details)
    • getScoreDetails

      public IAttributeScoreDetails getScoreDetails(String attribute)
      Description copied from interface: IDetailMatchResult
      This method returns the score details for the specified attribute.
      Specified by:
      getScoreDetails in interface IDetailMatchResult
      Parameters:
      attribute - The attribute for which detailed score information is requested.
      Returns:
      Detailed scoring information of the specified attribute.