com.webify.wsf.engine.policy
Interface AssertionComparator


public interface AssertionComparator

Version:
$Revision: $
Author:
msanchez

Field Summary
static float BEST_SCORE
           
static float WORST_SCORE
           
 
Method Summary
 float compare(Assertion goal, Assertion source)
          Compare the goal assertion to the source assertion.
 

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(Assertion goal,
              Assertion source)
Compare the goal assertion to the source assertion. Return a score betweeen 0 and 1 where 1 indicates a perfect match and 0 indicates that worst possible match.

Parameters:
goal - the assertion representing the desired capability
source - the assertion representing the declared capability
Returns:
a number between 0 and 1


Copyright © 2002-2009 IBM. All Rights Reserved.