Class IntersectionMatcher

java.lang.Object
com.aquima.interactions.matching.impl.model.MultiValueMatcher
com.aquima.interactions.matching.impl.model.IntersectionMatcher
All Implemented Interfaces:
IMatchFunction

public class IntersectionMatcher extends MultiValueMatcher

Intersection match strategy.
This multi value strategy calculates the average score of all the requested values.

Copyright: Copyright (c) 2002

Company: Everest b.v.

Since:
6.0
Author:
O. Kerpershoek
  • Constructor Details

    • IntersectionMatcher

      protected IntersectionMatcher(IMatchFunction matcher)
  • Method Details

    • match

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