com.webify.wsf.engine.policy
Interface AssertionPropertyComparator


public interface AssertionPropertyComparator

Version:
$Revision: $
Author:
msanchez

Field Summary
static float BEST_SCORE
           
static float WORST_SCORE
           
 
Method Summary
 float compare(java.lang.Object goalValue, java.lang.Object sourceValue)
          Compare the goal property value to the source property value.
 

Field Detail

WORST_SCORE

static final float WORST_SCORE
See Also:
Constant Field Values

BEST_SCORE

static final float BEST_SCORE
See Also:
Constant Field Values
Method Detail

compare

float compare(java.lang.Object goalValue,
              java.lang.Object sourceValue)
Compare the goal property value to the source property value. Return a score betweeen 0 and 1 where 1 indicates a perfect match and 0 indicates that worst possible match.

Parameters:
goalValue - the property value representing the desired capability
sourceValue - the property value representing the declared capability
Returns:
a number between 0 and 1


Copyright © 2002-2009 IBM. All Rights Reserved.