|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IConditionTreeNode
An interface to represent a node in a condition tree of the resource matcher. The condition tree represents a query for resources.
Method Summary | |
---|---|
boolean |
evaluateNode(ResourceDescriptorRecord resource)
Check the compliance of the input resource with the node of the condition subtree originating from this node. |
double |
evaluateScore(ResourceDescriptorRecord resource)
Check the compliance of the input resource with the node of the condition subtree originating from this node, and evaluate the score of the resource. |
double |
evaluateScore(ResourceDescriptorRecord resource,
java.util.Hashtable<java.lang.Integer,java.lang.Double> attributeWeight)
Check the compliance of the input resource with the node of the condition subtree originating from this node, and evaluate the score of the resource. |
boolean |
getSubtreeScorekeeper(ResourceDescriptorRecord resource,
java.util.Hashtable<java.lang.Integer,AttributeScorekeeper> scorekeepers)
The method builds a hash table of AttributeScorekeeper instances for each of the attribute that takes part in the subtree of the condition tree that starts at the provided node. |
Method Detail |
---|
boolean evaluateNode(ResourceDescriptorRecord resource) throws java.lang.IllegalArgumentException
resource
- The resource to check the compliance of.
java.lang.IllegalArgumentException
double evaluateScore(ResourceDescriptorRecord resource) throws java.lang.IllegalArgumentException
resource
- The resource to check the compliance of.
java.lang.IllegalArgumentException
double evaluateScore(ResourceDescriptorRecord resource, java.util.Hashtable<java.lang.Integer,java.lang.Double> attributeWeight) throws java.lang.IllegalArgumentException
resource
- The resource to check the compliance of.attributeWeight
- A hash table of pairs (attribute identifier,
the weight)
java.lang.IllegalArgumentException
boolean getSubtreeScorekeeper(ResourceDescriptorRecord resource, java.util.Hashtable<java.lang.Integer,AttributeScorekeeper> scorekeepers)
resource
- The resource record to get the scores of.scorekeepers
- The hash table that receives the attribute's scores.
The contents of the hash table will change during the call execution.
If the subtree yields that the record complies with the respective
subpart of the query, then the hash table should be updated with the
scores computed at the leaf nodes. If it yields non-complience, then
the attribute entries already in the hash table should be left intact,
and those encountered in the subtree that do not appear in the hash table
have to be tagged with negative scores and zero occurence counts.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |