Class AttributeScore

java.lang.Object
com.aquima.interactions.matching.result.AttributeScore
All Implemented Interfaces:
IAttributeScore

public class AttributeScore extends Object implements IAttributeScore
This class contains the score details for a single matched attribute.
Since:
6.4
Author:
O. Kerpershoek
  • Constructor Details

    • AttributeScore

      public AttributeScore(String attributeName, IMatchFunction function, int weight, int score)
      Constructs the score class with the required arguments.
      Parameters:
      attributeName - The name of the attribute.
      function - The name of match function that was used to calculate the score.
      weight - The weight of the attribute.
      score - The score for the attribute.
  • Method Details

    • getAttributeName

      public String getAttributeName()
      Description copied from interface: IAttributeScore
      This method returns the name of the attribute for which the score was calculated.
      Specified by:
      getAttributeName in interface IAttributeScore
      Returns:
      the name of the attribute for which the score was calculated.
    • getMatchFunction

      public String getMatchFunction()
      Description copied from interface: IAttributeScore
      This method returns the name of the match function that was used to match the attribute.
      Specified by:
      getMatchFunction in interface IAttributeScore
      Returns:
      the name of the match function that was used to match the attribute.
    • getScore

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

      public int getWeight()
      Description copied from interface: IAttributeScore
      This method returns the weight of the attribute.
      Specified by:
      getWeight in interface IAttributeScore
      Returns:
      the weight of the attribute.