de.fuberlin.wiwiss.semmf.result
Interface MatchingResult

All Known Implementing Classes:
MatchingResultImpl

public interface MatchingResult

When the method exec() is invoked on a MatchingEngine, a MatchingResult object holding a List of ranked instances of GraphMatchingDescription is returned. These objects are sorted in a descending manner => the index starts at the object having the highest similarity. This interface provides method for sorting and traversing the matching output.

Version:
1.0 last modified 29.11.2006
Author:
Radoslaw Oldakowski

Method Summary
 int count()
           
 GraphMatchingResult getFirst()
           
 boolean hasNext()
           
 GraphMatchingResult next()
           
 void setToFirst()
          sets the index of the Iterator to the first (best ranked) element in the List
 void sortByClusterSim(java.lang.String clusterLabel)
          sorts all GraphMatching results by the given cluster similarity in descending order
 void sortByGraphSim()
          sorts all GraphMatching results by their overall similarity in descending order
 

Method Detail

count

int count()
Returns:
the number of GraphMatchingResults

sortByGraphSim

void sortByGraphSim()
sorts all GraphMatching results by their overall similarity in descending order


sortByClusterSim

void sortByClusterSim(java.lang.String clusterLabel)
sorts all GraphMatching results by the given cluster similarity in descending order

Parameters:
clusterLabel - label provided in a matching description

setToFirst

void setToFirst()
sets the index of the Iterator to the first (best ranked) element in the List


getFirst

GraphMatchingResult getFirst()
Returns:
the best ranked GraphMatchingResult

hasNext

boolean hasNext()
Returns:
true is the is a next element in the ranked list of GraphMatchingResults

next

GraphMatchingResult next()
Returns:
the next element in the ranked list of GraphMatchingResults