gr.demokritos.iit.jinsect.documentModel.comparators
Class NGramGraphComparator

java.lang.Object
  extended by gr.demokritos.iit.jinsect.documentModel.comparators.NGramGraphComparator
All Implemented Interfaces:
Notifier, SimilarityComparatorListener
Direct Known Subclasses:
NGramCachedGraphComparator

public class NGramGraphComparator
extends java.lang.Object
implements SimilarityComparatorListener, Notifier

An n-gram graph comparison performing class, the compares DocumentNGramGraph objects.


Field Summary
protected  NotificationListener Listener
           
 
Constructor Summary
NGramGraphComparator()
          Creates a new instance of NGramGraphComparator.
 
Method Summary
 NotificationListener getNotificationListener()
          Returns the notification listener used for progress report info.
 GraphSimilarity getSimilarityBetween(java.lang.Object oFirst, java.lang.Object oSecond)
          Returns the similarity between two document n-gram graphs.
 void removeNotificationListener()
          Clears the notification listener, that accepts progress report info, so that no reporting is made.
 void setNotificationListener(NotificationListener nlListener)
          Sets the notification listener, that accepts progress report info.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Listener

protected NotificationListener Listener
Constructor Detail

NGramGraphComparator

public NGramGraphComparator()
Creates a new instance of NGramGraphComparator.

Method Detail

getSimilarityBetween

public GraphSimilarity getSimilarityBetween(java.lang.Object oFirst,
                                            java.lang.Object oSecond)
Returns the similarity between two document n-gram graphs.

Specified by:
getSimilarityBetween in interface SimilarityComparatorListener
Parameters:
oFirst - The first document n-gram graph.
oSecond - The second document n-gram graph.
Returns:
A GraphSimilarity object, giving a measure of similarity between the two graphs.
See Also:
DocumentNGramGraph

setNotificationListener

public void setNotificationListener(NotificationListener nlListener)
Sets the notification listener, that accepts progress report info.

Specified by:
setNotificationListener in interface Notifier
Parameters:
nlListener - The listener object.
See Also:
NotificationListener

removeNotificationListener

public void removeNotificationListener()
Clears the notification listener, that accepts progress report info, so that no reporting is made.

Specified by:
removeNotificationListener in interface Notifier
See Also:
NotificationListener

getNotificationListener

public NotificationListener getNotificationListener()
Returns the notification listener used for progress report info.

Specified by:
getNotificationListener in interface Notifier
Returns:
The notification listener, or null value if none is assigned.
See Also:
NotificationListener