eu.xtreemos.xosd.resmng.data
Interface INodeEvaluation

All Known Implementing Classes:
NodeEvaluationConstant, NodeEvaluationLinear, NodeEvaluationLinearLimited

public interface INodeEvaluation

An interface for evaluating the attribute's contribution to the query hit score. The classes implementing the interface should implement a way of setting the inner function's parameters, and the function for evaluating the score given attribute's value.

Author:
matej.artac@xlab.si

Method Summary
 double getScore(java.lang.Object attributeValue)
          Compute a score for the given attribute value by evaluating the given function.
 

Method Detail

getScore

double getScore(java.lang.Object attributeValue)
Compute a score for the given attribute value by evaluating the given function.

Parameters:
attributeValue - The value of the attribute to be evaluated, or null if
Returns:
The score evaluated as the value of the function at the point of the attributeValue parameter.