Class CrossTableMatch
java.lang.Object
com.aquima.interactions.matching.impl.functions.MatchFunction
com.aquima.interactions.matching.impl.functions.crosstable.CrossTableMatch
- All Implemented Interfaces:
IMatchFunction
Implementation of the cross-table match function.
- Since:
- 6.2
- Author:
- O. Kerpershoek, F. van der Meer
-
Constructor Summary
ModifierConstructorDescriptionprotected
CrossTableMatch
(String name, CrossTableDefinition crosstable) -
Method Summary
Modifier and TypeMethodDescriptiondemandValueFor
(IValue obj) This method is invoked to convert a value object to a matchable demand value.DataType[]
This method returns an array of data types that are supported by this match function.int
match
(IMatchValue vraag, IMatchValue aanbod) This match function uses a crosstable to lookup the distance between the requested value and the offered value.supplyValueFor
(IValue obj) This method is invoked to convert a value object to a matchable supply value.Methods inherited from class com.aquima.interactions.matching.impl.functions.MatchFunction
getMatchType, getName, match, onLoadComplete, onStartup
-
Constructor Details
-
CrossTableMatch
-
-
Method Details
-
getSupportedTypes
Description copied from interface:IMatchFunction
This method returns an array of data types that are supported by this match function.- Returns:
- an array of data types that are supported by this match function.
-
demandValueFor
Description copied from interface:IMatchFunction
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
Description copied from interface:IMatchFunction
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.
-
match
This match function uses a crosstable to lookup the distance between the requested value and the offered value. A distance of 100 means the values are identical, whereas a distance of 0 means that there is no relation.- Parameters:
vraag
- DomainValue that is requested.aanbod
- DomainValue that is offered.- Returns:
- Number between 0 and 100 (percentage).
-