Class NumberRampMatch
java.lang.Object
com.aquima.interactions.matching.impl.functions.MatchFunction
com.aquima.interactions.matching.impl.functions.ramp.RampMatch
com.aquima.interactions.matching.impl.functions.ramp.NumberRampMatch
- All Implemented Interfaces:
IMatchFunction
Implementation of the Ramp match for number values.
- Since:
- 6.2
- Author:
- O. Kerpershoek, F. van der Meer
-
Field Summary
Fields inherited from class com.aquima.interactions.matching.impl.functions.ramp.RampMatch
PARAM_RAMP_DEFINITION
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
NumberRampMatch
(String name, IMatchFunctionParameters parameters) -
Method Summary
Modifier and TypeMethodDescriptiondemandValueFor
(IValue obj) This method is invoked to convert a value object to a matchable demand value.protected double
getAWaarde
(double norm) protected double
getBWaarde
(double norm) protected double
getCWaarde
(double norm) protected double
getDWaarde
(double norm) DataType[]
This method returns an array of data types that are supported by this match function.protected boolean
protected boolean
int
match
(IMatchValue vraag, IMatchValue aanbod) This method should compare the demand value against the supply value and determine the match score.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.ramp.RampMatch
getRampDefinition
Methods inherited from class com.aquima.interactions.matching.impl.functions.MatchFunction
getMatchType, getName, match, onLoadComplete, onStartup
-
Constructor Details
-
NumberRampMatch
-
-
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.
-
getAWaarde
protected double getAWaarde(double norm) - Specified by:
getAWaarde
in classRampMatch
-
getBWaarde
protected double getBWaarde(double norm) - Specified by:
getBWaarde
in classRampMatch
-
getCWaarde
protected double getCWaarde(double norm) - Specified by:
getCWaarde
in classRampMatch
-
getDWaarde
protected double getDWaarde(double norm) - Specified by:
getDWaarde
in classRampMatch
-
isLeftOnlyRamp
protected boolean isLeftOnlyRamp() -
isRightOnlyRamp
protected boolean isRightOnlyRamp() -
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.
-
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.
-
match
Description copied from interface:IMatchFunction
This method should compare the demand value against the supply value and determine the match score.- Parameters:
vraag
- The value that is demanded.aanbod
- The value that is supplied.- Returns:
- The match score for the supply and demand combination.
-