de.hpi.fgis.dude.similarityfunction.contentbased.calculationstrategy
Class NotSupportedStrategy<T1 extends JsonValue,T2 extends JsonValue>
java.lang.Object
de.hpi.fgis.dude.similarityfunction.contentbased.calculationstrategy.NotSupportedStrategy<T1,T2>
- Type Parameters:
T1
- The type of the first value.T2
- The type of the second value.
- All Implemented Interfaces:
- CalculationStrategy<T1,T2>
public class NotSupportedStrategy<T1 extends JsonValue,T2 extends JsonValue>
- extends Object
- implements CalculationStrategy<T1,T2>
NotSupportedStrategy
will throw an IllegalArgumentException
no matter which values were passed.
- Author:
- Matthias Pohl
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NotSupportedStrategy
public NotSupportedStrategy()
calculateSimilarity
public double calculateSimilarity(ContentBasedSimilarityFunction<?> similarityFunction,
T1 value1,
T2 value2)
- Description copied from interface:
CalculationStrategy
- Calculates the similarity of the passed values.
- Specified by:
calculateSimilarity
in interface CalculationStrategy<T1 extends JsonValue,T2 extends JsonValue>
- Parameters:
similarityFunction
- The SimilarityFunction
that is used for atomic values within this strategy.value1
- The first value.value2
- The second value.
- Returns:
- Returns the similarity of the passed values.
Copyright © 2011 Hasso Plattner Institute - Chair of Information Systems. All Rights Reserved.