Class EntityMatchDef

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

public class EntityMatchDef extends MatchFunction implements IMatchFunction
This match function acts as a place-holder for the actual EntityMatch during initialization. When this match function is present for a relation attribute, it will be replaced with an instance of EntityMatch once the casebases are initialized. This place-holder is used to indicate a relation attribute should be matched.
Since:
6.2
Author:
O. Kerpershoek, F. van der Meer
  • Constructor Details

    • EntityMatchDef

      protected EntityMatchDef(String name, String type)
  • 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.
      Specified by:
      getSupportedTypes in interface IMatchFunction
      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.
      Specified by:
      demandValueFor in interface IMatchFunction
      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.
      Specified by:
      supplyValueFor in interface IMatchFunction
      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.
      Specified by:
      match in interface IMatchFunction
      Parameters:
      demand - The value that is demanded.
      supply - The value that is supplied.
      Returns:
      The match score for the supply and demand combination.