Class MultiValueMatcher
java.lang.Object
com.aquima.interactions.matching.impl.model.MultiValueMatcher
- All Implemented Interfaces:
IMatchFunction
- Direct Known Subclasses:
IntersectionMatcher
,MaximumMatcher
,UniqueMatcher
Base class for multivalue matchers.
- Since:
- 6.2
- Author:
- O. Kerpershoek
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal IMatchValue
demandValueFor
(IValue obj) This method is invoked to convert a value object to a matchable demand value.protected final IMatchFunction
This method returns the type of the match function.getName()
This method returns the unique match function name.DataType[]
This method returns an array of data types that are supported by this match function.final int
match
(IMatchVisitor visitor, IMatchValue demand, IMatchValue supply) This method should compare the demand value against the supply value and determine the match score.void
This method is invoked by the casebase after all the cases have been initialized.void
This method is invoked by the casebase before the cases are initialized.final IMatchValue
supplyValueFor
(IValue obj) This method is invoked to convert a value object to a matchable supply value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.aquima.interactions.matching.IMatchFunction
match
-
Constructor Details
-
MultiValueMatcher
-
-
Method Details
-
getSupportedTypes
Description copied from interface:IMatchFunction
This method returns an array of data types that are supported by this match function.- Specified by:
getSupportedTypes
in interfaceIMatchFunction
- Returns:
- an array of data types that are supported by this match function.
-
getMatchFunction
-
onStartup
public void onStartup()Description copied from interface:IMatchFunction
This method is invoked by the casebase before the cases are initialized.- Specified by:
onStartup
in interfaceIMatchFunction
-
onLoadComplete
public void onLoadComplete()Description copied from interface:IMatchFunction
This method is invoked by the casebase after all the cases have been initialized. The onLoadComplete method may be used to optimize or adjust weight values based on the distribution of the case values.- Specified by:
onLoadComplete
in interfaceIMatchFunction
-
demandValueFor
Description copied from interface:IMatchFunction
This method is invoked to convert a value object to a matchable demand value.- Specified by:
demandValueFor
in interfaceIMatchFunction
- Parameters:
obj
- The value object that should be converted.- Returns:
- The demand value for the object value.
-
supplyValueFor
Description copied from interface:IMatchFunction
This method is invoked to convert a value object to a matchable supply value.- Specified by:
supplyValueFor
in interfaceIMatchFunction
- Parameters:
obj
- The value object that should be converted.- Returns:
- The supply value for the object value.
-
match
Description copied from interface:IMatchFunction
This method should compare the demand value against the supply value and determine the match score.- Specified by:
match
in interfaceIMatchFunction
- Parameters:
visitor
- The visitor that should be notified of the match events.demand
- The value that is demanded.supply
- The value that is supplied.- Returns:
- The match score for the supply and demand combination.
-
getName
Description copied from interface:IMatchFunction
This method returns the unique match function name.- Specified by:
getName
in interfaceIMatchFunction
- Returns:
- the unique match function name.
-
getMatchType
Description copied from interface:IMatchFunction
This method returns the type of the match function.- Specified by:
getMatchType
in interfaceIMatchFunction
- Returns:
- the type of the match function.
-