|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.ic.doc.automed.matching.BidirectionalDegree
public class BidirectionalDegree
The BidirectionalDegree class represents the bidirectional similarity degrees
for two schema elements.
For each pair of schema elements, a BidirectionalDegree object
can be constructed to store the similarity degrees produced by the bidirectional
comparison of the elements. These are the normalized "forward" and "backward" similarity degrees,
i.e. each has a range {0..1}.
| Constructor Summary | |
|---|---|
BidirectionalDegree(double forward,
double backward)
Constructs a BidirectionalDegree object
based on the specified forward and backward similarity degrees. |
|
| Method Summary | |
|---|---|
void |
add(BidirectionalDegree bd)
Adds the specified bidirectional degree to the current degree. |
int |
compareTo(BidirectionalDegree d)
|
void |
divide(BidirectionalDegree bd)
Divides the specified bidirectional degree from the current degree. |
boolean |
equals(BidirectionalDegree d)
Returns true if this degree is equal to the specified degree. |
double |
getBackwardDegree()
Returns the backward similarity degree. |
double |
getForwardDegree()
Returns the forward similarity degree. |
boolean |
isNaN()
Returns true if one of the similarity degrees is not a number. |
void |
multiply(BidirectionalDegree bd)
Multiplies the specified bidirectional degree to the current degree. |
boolean |
overFunction(double c)
Returns true if the following is true: forward+backward-c>=0 |
void |
setBackwardDegree(double backward)
|
void |
setForwardDegree(double forward)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BidirectionalDegree(double forward,
double backward)
BidirectionalDegree object
based on the specified forward and backward similarity degrees.
forward - the forward similarity degreebackward - the backward similarity degree| Method Detail |
|---|
public boolean isNaN()
true if one of the similarity degrees is not a number.
true if one of the similarity degrees is not a number, false
otherwise.public double getForwardDegree()
public double getBackwardDegree()
public void setForwardDegree(double forward)
public void setBackwardDegree(double backward)
public java.lang.String toString()
toString in class java.lang.Objectpublic void add(BidirectionalDegree bd)
bd - the bidirectional degree to be addedpublic void divide(BidirectionalDegree bd)
bd - the bidirectional degree to dividepublic void multiply(BidirectionalDegree bd)
bd - the bidirectional degree to multiplypublic boolean overFunction(double c)
true if the following is true: forward+backward-c>=0
true if the following is true: forward+backward-c>=0, false otherwise.public boolean equals(BidirectionalDegree d)
true if this degree is equal to the specified degree.
true if this degree is equal to the specified degree.public int compareTo(BidirectionalDegree d)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||