Package com.aquima.interactions.matching
Interface IMatchDefinition
- All Known Implementing Classes:
MatchDefinition
public interface IMatchDefinition
This interface defines the methods that define how an attribute should be matched.
- Since:
- 6.2
- Author:
- O. Kerpershoek, F. van der Meer
-
Method Summary
Modifier and TypeMethodDescriptiondemandValueFor
(IValue obj) This method is invoked to convert a value object to a matchable demand value.This method returns the name of the attribute for which these match settings are defined.int
This method returns the threshold that should be used as default when the match request does not specify a threshold for the attribute.int
This method returns the unknown percentage that should be used as default when the match request does not specify an unknown percentage for the attribute.int
This method returns the weight that should be used when matching the attribute when no weight value is provided by the match request.This method returns the name of the attribute that should be used as modifier for the score of this attribute.This method returns the match function that will be used to match the attribute.This method returns the requirement that should be met before a match may be initiated for this attribute.boolean
This method returns a boolean indicating if the attribute this match definition is defined for can have multiple values.boolean
This method returns a boolean indicating if the attribute should be matched reversed.supplyValueFor
(IValue obj) This method is invoked to convert a value object to a matchable supply value.
-
Method Details
-
getAttributeName
String getAttributeName()This method returns the name of the attribute for which these match settings are defined.- Returns:
- the name of the attribute for which these match settings are defined.
-
getMasterAttributeName
String getMasterAttributeName()This method returns the name of the attribute that should be used as modifier for the score of this attribute. When a master attribute has been specified, the score of this attribute will be multiplied by (percentage wise) with the score of the master attribute. In effect this means that this attribute can never score higher than its master attribute, thus creating a dependency between the two.- Returns:
- the name of the attribute that should be used as modifier for the score of this attribute (may be null).
-
getDefaultWeight
int getDefaultWeight()This method returns the weight that should be used when matching the attribute when no weight value is provided by the match request.- Returns:
- The weight that should be used as default when matching the attribute.
-
getDefaultThresholdPercentage
int getDefaultThresholdPercentage()This method returns the threshold that should be used as default when the match request does not specify a threshold for the attribute.- Returns:
- The threshold that should be used when matching the attribute.
-
getDefaultUnknownPercentage
int getDefaultUnknownPercentage()This method returns the unknown percentage that should be used as default when the match request does not specify an unknown percentage for the attribute.- Returns:
- The unknown percentage that should be used when matching the attribute.
-
isReverseMatch
boolean isReverseMatch()This method returns a boolean indicating if the attribute should be matched reversed. A reverse match means that the supply and demand values are switched, so the case value (demand) will be matched against the profile value (supply).- Returns:
- a boolean indicating if the attribute should be matched reversed.
-
getMatchFunction
IMatchFunction getMatchFunction()This method returns the match function that will be used to match the attribute. The match function might be wrapped with a multivalue matcher, depending on the strategy.- Returns:
- The match function that should be used to match the attribute.
-
getRequirementType
RequirementType getRequirementType()This method returns the requirement that should be met before a match may be initiated for this attribute.- Returns:
- the requirement that should be met before a match may be initiated for this attribute.
-
demandValueFor
This method is invoked to convert a value object to a matchable demand value.- Parameters:
obj
- The value object that should be converted.- Returns:
- The demand value for the object value.
-
supplyValueFor
This method is invoked to convert a value object to a matchable supply value.- Parameters:
obj
- The value object that should be converted.- Returns:
- The supply value for the object value.
-
isMultivalue
boolean isMultivalue()This method returns a boolean indicating if the attribute this match definition is defined for can have multiple values.- Returns:
- Boolean indicating if the attribute can have multiple values.
-