Package org.jppf.utils
Class TypedPropertiesSimilarityEvaluator
java.lang.Object
org.jppf.utils.TypedPropertiesSimilarityEvaluator
Computes a similarity score between two instances of TypedProperties.
- Since:
- 5.2
- Author:
- Laurent Cohen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intcomputeDistance(TypedProperties props1, TypedProperties props2) Compute the cost of transforming the values of props2 into the values of the properties defined in props1.
-
Constructor Details
-
TypedPropertiesSimilarityEvaluator
public TypedPropertiesSimilarityEvaluator()
-
-
Method Details
-
computeDistance
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.
-