Class EntityMatch

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

public class EntityMatch extends MatchFunction
This internal match function is used to match relation attributes. The match function replaces the EntityMatchDef function that was added during initialization. This function is not initialized by the factory, as it requires several internal parameters to be constructed.
Since:
6.2
Author:
O. Kerpershoek, F. van der Meer
  • Constructor Details

    • EntityMatch

      protected EntityMatch(String name, CaseBase casebase)
  • 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 demand, IMatchValue supply)
      Description copied from interface: IMatchFunction
      This method should compare the demand value against the supply value and determine the match score.
      Parameters:
      demand - The value that is demanded.
      supply - The value that is supplied.
      Returns:
      The match score for the supply and demand combination.