All Implemented Interfaces:
IMatchFunction

public final class DateRampMatch extends RampMatch
Implementation of the Ramp match for date values.
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.
    • getAWaarde

      protected double getAWaarde(double norm)
      Specified by:
      getAWaarde in class RampMatch
    • getBWaarde

      protected double getBWaarde(double norm)
      Specified by:
      getBWaarde in class RampMatch
    • getCWaarde

      protected double getCWaarde(double norm)
      Specified by:
      getCWaarde in class RampMatch
    • getDWaarde

      protected double getDWaarde(double norm)
      Specified by:
      getDWaarde in class RampMatch
    • isLeftOnlyRamp

      protected boolean isLeftOnlyRamp()
    • isRightOnlyRamp

      protected boolean isRightOnlyRamp()
    • 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)
      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.