Class AttributeScore
java.lang.Object
com.aquima.interactions.matching.result.AttributeScore
- All Implemented Interfaces:
IAttributeScore
This class contains the score details for a single matched attribute.
- Since:
- 6.4
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorsConstructorDescriptionAttributeScore
(String attributeName, IMatchFunction function, int weight, int score) Constructs the score class with the required arguments. -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the name of the attribute for which the score was calculated.This method returns the name of the match function that was used to match the attribute.int
getScore()
This method returns the score of the attribute.int
This method returns the weight of the attribute.
-
Constructor Details
-
AttributeScore
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
Description copied from interface:IAttributeScore
This method returns the name of the attribute for which the score was calculated.- Specified by:
getAttributeName
in interfaceIAttributeScore
- Returns:
- the name of the attribute for which the score was calculated.
-
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 interfaceIAttributeScore
- 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 interfaceIAttributeScore
- 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 interfaceIAttributeScore
- Returns:
- the weight of the attribute.
-