|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.ic.doc.automed.matching.SchemaElementPair
uk.ac.ic.doc.automed.matching.SimilarSchemaElementPair
public class SimilarSchemaElementPair
The class representing a pair of schema elements and its bidirectional similarity degrees.
As in SchemaElementPair the index of the schema element matters.
BidirectionalDegree| Constructor Summary | |
|---|---|
SimilarSchemaElementPair(SchemaElementPair pair,
BidirectionalDegree degree)
Constructs a SimilarSchemaElementPair object. |
|
SimilarSchemaElementPair(SchemaElement first,
SchemaElement second,
BidirectionalDegree degree)
Constructs a SimilarSchemaElementPair object. |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object o)
|
BidirectionalDegree |
getDegree()
Returns the bidirectional degree of this pair. |
static java.util.Hashtable |
merge(java.util.Hashtable table1,
java.util.Hashtable table2)
Returns a Hashtable with the merged bidirectional degrees defined in the arguments. |
java.lang.String |
toString()
|
static void |
writeSimilarSchemaElementPairs(java.lang.String fileprefix,
SimilarSchemaElementPair[] pairs)
|
| Methods inherited from class uk.ac.ic.doc.automed.matching.SchemaElementPair |
|---|
equals, getElement, getFirstElement, getSecondElement, hashCode, setFirstElement, setSecondElement |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SimilarSchemaElementPair(SchemaElement first,
SchemaElement second,
BidirectionalDegree degree)
SimilarSchemaElementPair object.
first - the first element of the pairsecond - the second element of the pairdegree - the bidirectionan similarity degrees of the pair
public SimilarSchemaElementPair(SchemaElementPair pair,
BidirectionalDegree degree)
SimilarSchemaElementPair object.
pair - the schema element pairdegree - the bidirectionan similarity degrees of the pair| Method Detail |
|---|
public java.lang.String toString()
toString in class SchemaElementPairpublic BidirectionalDegree getDegree()
public static void writeSimilarSchemaElementPairs(java.lang.String fileprefix,
SimilarSchemaElementPair[] pairs)
throws java.io.IOException
java.io.IOException
public static java.util.Hashtable merge(java.util.Hashtable table1,
java.util.Hashtable table2)
Hashtable with the merged bidirectional degrees defined in the arguments.
The input arguments and the returned value are hash tables which associate SchemaElementPair objects to SimilarSchemaElementPair objects. The merging process
produces for each pair of schema elements that appear in the input hash tables the average
bidirectional degrees.
Hashtable with the merged bidirectional degrees.public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||