java.lang.Object
com.aquima.interactions.matching.impl.functions.MatchFunction
com.aquima.interactions.matching.impl.functions.crosstable.CrossTableMatch
All Implemented Interfaces:
IMatchFunction

public final class CrossTableMatch extends MatchFunction
Implementation of the cross-table match function.
Since:
6.2
Author:
O. Kerpershoek, F. van der Meer
  • Constructor Details

  • Method Details

    • getSupportedTypes

      public DataType[] 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

      public IMatchValue demandValueFor(IValue obj)
      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

      public IMatchValue supplyValueFor(IValue obj)
      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

      public int match(IMatchValue vraag, IMatchValue aanbod)
      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).