org.electrocodeogram.cpc.similarity.api.strategy
Interface ISimilarityStrategy
public interface ISimilarityStrategy
Strategy extension interface for the default ISimilarityProvider
implementation.
- Author:
- vw
- See Also:
ISimilarityProvider
,
SimilarityProvider
,
ISimilarityStrategyTask
calculateSimilarity
ISimilarityStrategy.Status calculateSimilarity(IStoreProvider storeProvider,
ISimilarityStrategyTask task)
- Applies this strategy to the given similarity evaluation task.
- Parameters:
storeProvider
- an optional store provider reference, NULL if the client requested a transient handling of the evaluation.task
- the similarity evaluation task, never null. A strategy directly modifies the task object in order to store its results.
- Returns:
- the status of this operation, never null.
- See Also:
ISimilarityStrategyTask