notio
Interface MarkerComparator


public interface MarkerComparator

Interface for marker comparators. During graph matching, and in other situations, the Notio package may need to establish whether two markers are equivalent (refer to the same entity). This decision is likely to be application-specific since markers may refer to entities outside of the scope of the Notio layer, or the application may wish to form relationships when comparisons are made. In order to allow applications to specify the exact rules, they may provide an implementation of this interface as part of a MatchingScheme. The comparator will be called whenever two markers are compared. Possible uses include:

See Also:
MatchingScheme

Method Summary
 boolean compareMarkers(Marker firstMarker, Marker secondMarker)
          Called by matching routines when they need to determine whether two individual markers should be considered equivalent.
 

Method Detail

compareMarkers

public boolean compareMarkers(Marker firstMarker,
                              Marker secondMarker)
Called by matching routines when they need to determine whether two individual markers should be considered equivalent. Should return true if the two markers are considered to be equivalent, and false otherwise.
Parameters:
firstMarker - the first of the two markers being compared.
secondMarker - the second of the two markers being compared.
Returns:
true if the two markers should be treated as equivalent for matching purpose, false otherwise.


Copyright 1998-1999 Finnegan Southey