|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.fzi.kadmos.api.impl.SimpleCorrespondence<T>
public class SimpleCorrespondence<T extends OWLEntity>
Default implementation of a correspondence. This serialisable implementation realises
a simple correspondence with confidence values between 0 and 1. It also provides default
implementations for equals() and hashCode().
When cloning this object, the clone will reference the same entities as this object, i.e. referenced entites will not be cloned recursively.
| Constructor Summary | |
|---|---|
protected |
SimpleCorrespondence(T ent1,
T ent2,
double conf)
Creates a correspondence between to entites with specified confidence. |
| Method Summary | |
|---|---|
SimpleCorrespondence<T> |
clone()
Creates a clone of this correspondence. |
boolean |
equals(Object other)
|
double |
getConfidence()
Gets the confidence of this correspondence. |
T |
getEntity1()
Gets the first entity of this correspondence. |
T |
getEntity2()
Gets the second entity of this correspondence. |
int |
hashCode()
|
void |
setConfidence(double conf)
Sets the confidence of this correspondence. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected SimpleCorrespondence(T ent1,
T ent2,
double conf)
ent1 - Entity 1ent2 - Entity 2conf - Confidence value (will be cropped to 0 < conf < 1)| Method Detail |
|---|
public double getConfidence()
getConfidence in interface Correspondence<T extends OWLEntity>public T getEntity1()
null values are permitted.
getEntity1 in interface Correspondence<T extends OWLEntity>public T getEntity2()
null values are permitted.
getEntity2 in interface Correspondence<T extends OWLEntity>public void setConfidence(double conf)
setConfidence in interface Correspondence<T extends OWLEntity>conf - The confidence value.public boolean equals(Object other)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic SimpleCorrespondence<T> clone()
clone in interface Correspondence<T extends OWLEntity>clone in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||