Class DetailMatchResult
java.lang.Object
com.aquima.interactions.matching.result.DetailMatchResult
- All Implemented Interfaces:
IDetailMatchResult
This object contains the result of a detail match.
- Since:
- 6.2
- Author:
- O. Kerpershoek, F. van der Meer
-
Constructor Summary
ConstructorsConstructorDescriptionDetailMatchResult
(String caseId) Constructs a detail match result for a specific case. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttributeScore
(AttributeScore attrScore) This method may be used to add the score details of an attribute.This method returns the name of the case that was matched.String[]
This method returns an array containing the names of the attributes that were matched to calculate the score of this case.int
getScore()
This method returns the score of the case.This method returns the match information for the specified attribute.getScoreDetails
(String attribute) This method returns the score details for the specified attribute.void
setScore
(int score) This method may be used to set the score of the case.void
setScoreDetails
(String attribute, IAttributeScoreDetails details)
-
Constructor Details
-
DetailMatchResult
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
Description copied from interface:IDetailMatchResult
This method returns the name of the case that was matched.- Specified by:
getCaseId
in interfaceIDetailMatchResult
- 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 interfaceIDetailMatchResult
- Returns:
- the score of the case.
-
getScore
Description copied from interface:IDetailMatchResult
This method returns the match information for the specified attribute.- Specified by:
getScore
in interfaceIDetailMatchResult
- 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
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 interfaceIDetailMatchResult
- Returns:
- An array containing the names of the attributes that were matched.
-
addAttributeScore
This method may be used to add the score details of an attribute.- Parameters:
attrScore
- Object containing the score details of an attribute.
-
setScoreDetails
-
getScoreDetails
Description copied from interface:IDetailMatchResult
This method returns the score details for the specified attribute.- Specified by:
getScoreDetails
in interfaceIDetailMatchResult
- Parameters:
attribute
- The attribute for which detailed score information is requested.- Returns:
- Detailed scoring information of the specified attribute.
-