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

Nested Class Summary
static class ISimilarityStrategy.Status
          Return value for calculateSimilarity(IStoreProvider, ISimilarityStrategyTask).
 
Method Summary
 ISimilarityStrategy.Status calculateSimilarity(IStoreProvider storeProvider, ISimilarityStrategyTask task)
          Applies this strategy to the given similarity evaluation task.
 

Method Detail

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