Class DetailMatchVisitor
java.lang.Object
com.aquima.interactions.matching.impl.model.DetailMatchVisitor
- All Implemented Interfaces:
IMatchVisitor
This class is used during a detail match to gather scoring information.
- Since:
- 6.4
- Author:
- O. Kerpershoek, c.de.meijer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected IDetailMatchResult
void
onAttributeMatch
(String attributeName, IMatchFunction function, int weight, int score) This method will be invoked when a single attribute has been matched.void
onBeginAttributeMatch
(String attributeName) This method will be invoked when a single attribute is about to be matched.void
onCaseMatch
(String instanceId, String caseId) This method will be invoked when a case is about to be matched.void
onCaseMatchComplete
(String instanceId, int score) This method will be invoked when a case match is complete, and the score of the case is available.void
setDetailScore
(IMatchValue demand, IMatchValue supply, int score) This method will be invoked for each possible combination of demand and supply values during a multi value match.
-
Constructor Details
-
DetailMatchVisitor
-
-
Method Details
-
getDetailMatchResult
-
onCaseMatch
Description copied from interface:IMatchVisitor
This method will be invoked when a case is about to be matched.- Specified by:
onCaseMatch
in interfaceIMatchVisitor
- Parameters:
instanceId
- The ID of the instance that is to be matched.caseId
- The ID of the case that is to be matched.
-
onCaseMatchComplete
Description copied from interface:IMatchVisitor
This method will be invoked when a case match is complete, and the score of the case is available.- Specified by:
onCaseMatchComplete
in interfaceIMatchVisitor
- Parameters:
instanceId
- The ID of the instance that was matched.score
- The score of the case.
-
onAttributeMatch
Description copied from interface:IMatchVisitor
This method will be invoked when a single attribute has been matched.- Specified by:
onAttributeMatch
in interfaceIMatchVisitor
- Parameters:
attributeName
- The name of the attribute that was matched.function
- The match function that was used to calculate the score.weight
- The weight of the attribute.score
- The score for the attribute.
-
onBeginAttributeMatch
Description copied from interface:IMatchVisitor
This method will be invoked when a single attribute is about to be matched.- Specified by:
onBeginAttributeMatch
in interfaceIMatchVisitor
- Parameters:
attributeName
- The name of the attribute that will be matched.
-
setDetailScore
Description copied from interface:IMatchVisitor
This method will be invoked for each possible combination of demand and supply values during a multi value match.- Specified by:
setDetailScore
in interfaceIMatchVisitor
- Parameters:
demand
- IMatchValue object containing the demand value of the combination.supply
- IMatchValue object containing the supply value of the combination.score
- int containing the score of this combination of demand and supply values.
-