Class TypedPropertiesSimilarityEvaluator

java.lang.Object
org.jppf.utils.TypedPropertiesSimilarityEvaluator

public class TypedPropertiesSimilarityEvaluator extends Object
Computes a similarity score between two instances of TypedProperties.
Since:
5.2
Author:
Laurent Cohen
  • Constructor Details

    • TypedPropertiesSimilarityEvaluator

      public TypedPropertiesSimilarityEvaluator()
  • Method Details

    • computeDistance

      public static int computeDistance(TypedProperties props1, TypedProperties props2)
      Compute the cost of transforming the values of props2 into the values of the properties defined in props1.
      Parameters:
      props1 - the properties to compare with.
      props2 - the rpoperties for which the transformation cost is computed.
      Returns:
      an int representing the cost of transforming the values of props2 into the values of the properties defined in props1.