de.fuberlin.wiwiss.semmf.result.impl
Class MatchingResultImpl

java.lang.Object
  extended by de.fuberlin.wiwiss.semmf.result.impl.MatchingResultImpl
All Implemented Interfaces:
MatchingResult

public class MatchingResultImpl
extends java.lang.Object
implements MatchingResult

Version:
1.0 last modified on 29.11.2006
Author:
Radoslaw Oldakowski

Field Summary
private  java.util.List gmdList
          List holding GraphMatchingResults
private  java.util.Iterator it
          Iterator over gmdList
 
Constructor Summary
MatchingResultImpl(java.util.List gmdList)
          Constructor
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gmdList

private java.util.List gmdList
List holding GraphMatchingResults


it

private java.util.Iterator it
Iterator over gmdList

Constructor Detail

MatchingResultImpl

public MatchingResultImpl(java.util.List gmdList)
Constructor

Parameters:
gmdList - List holding GraphMatchingResults
Method Detail

count

public int count()
Specified by:
count in interface MatchingResult
Returns:
the number of GraphMatchingResults

sortByGraphSim

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

Specified by:
sortByGraphSim in interface MatchingResult

sortByClusterSim

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

Specified by:
sortByClusterSim in interface MatchingResult
Parameters:
clusterLabel - label provided in a matching description

setToFirst

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

Specified by:
setToFirst in interface MatchingResult

getFirst

public GraphMatchingResult getFirst()
Specified by:
getFirst in interface MatchingResult
Returns:
the best ranked GraphMatchingResult

hasNext

public boolean hasNext()
Specified by:
hasNext in interface MatchingResult
Returns:
true is the is a next element in the ranked list of GraphMatchingResults

next

public GraphMatchingResult next()
Specified by:
next in interface MatchingResult
Returns:
the next element in the ranked list of GraphMatchingResults