|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Alignment
Interface representing an alignment and basic operations on it. Various methods for accessing the contained correspondences are provided.
AlignmentFactory| Method Summary | ||
|---|---|---|
void |
addCorrespondence(Correspondence<? extends OWLEntity> corr)
Adds a correspondence to an alignment if possible. |
|
void |
attachListener(AlignmentListener listener)
Registers an AlignmentListener. |
|
void |
clear()
Clears the alignment. |
|
Alignment |
clone()
Creates a clone of this alignment. |
|
boolean |
contains(Correspondence<? extends OWLEntity> corr)
Checks if this alignment contains a correspondence with the same entities as the provided correspondence. |
|
boolean |
contains(IRI ent1,
IRI ent2)
Checks if a correspondence of two entities specified by their IRIs is part of this alignment. |
|
|
contains(T ent1,
T ent2)
Checks if a correspondence of two specified entities is part of this alignment. |
|
boolean |
containsEntity1(IRI ent)
Checks if this alignment contains a correspondence with a first entity specified by an IRI. |
|
boolean |
containsEntity1(OWLEntity ent)
Checks if this alignment contains a correspondence with a specific first entity. |
|
boolean |
containsEntity2(IRI ent)
Checks if this alignment contains a correspondence with a second entity specified by an IRI. |
|
boolean |
containsEntity2(OWLEntity ent)
Checks if this alignment contains a correspondence with a specific second entity. |
|
void |
detachListener(AlignmentListener listener)
Deregisters an AlignmentListener. |
|
Set<Correspondence<? extends OWLEntity>> |
getCorrespondences()
Gets the set of correspondences of this alignment. |
|
Correspondence<? extends OWLEntity> |
getEntity1Corr(IRI ent)
Gets the correspondence with a specific entity as entity 1. |
|
|
getEntity1Corr(T ent)
Gets the correspondence with a specific entity as entity 1. |
|
Correspondence<? extends OWLEntity> |
getEntity2Corr(IRI ent)
Gets the correspondence with a specific entity as entity 2. |
|
|
getEntity2Corr(T ent)
Gets the correspondence with a specific entity as entity 2. |
|
Correspondence<? extends OWLEntity> |
getEntityCorr(IRI ent1,
IRI ent2)
Gets the correspondence with specific entities as entity 1 and entity2. |
|
|
getEntityCorr(T ent1,
T ent2)
Gets the correspondence with specific entities as entity 1 and entity 2. |
|
OWLOntology |
getOntology1()
Gets the first ontology of this alignment. |
|
OWLOntology |
getOntology2()
Gets the second ontology of this alignment. |
|
boolean |
isEmpty()
Checks, whether this alignment is empty, i.e. |
|
void |
removeCorrespondence(Correspondence<? extends OWLEntity> corr)
Removes a correspondence from this alignment if present. |
|
int |
size()
Gets the size of this alignment. |
|
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Method Detail |
|---|
OWLOntology getOntology1()
OWLOntology getOntology2()
Set<Correspondence<? extends OWLEntity>> getCorrespondences()
boolean contains(Correspondence<? extends OWLEntity> corr)
corr - The correspondence to be checked if it is contained by this alignment.
true if this alignment contains a correspondence with the same
entities as corr, false otherwise.
<T extends OWLEntity> boolean contains(T ent1,
T ent2)
T - Type of the entities of correspondence to be checked.ent1 - Entity 1.ent2 - Entity 2.
true if a correspondence of ent1 and ent2
is part of this alignment, false otherwise.
boolean contains(IRI ent1,
IRI ent2)
ent1 - IRI of entity 1.ent2 - IRI of entity 2.
true if a correspondence of ent1 and ent2
is part of this alignment, false otherwise.boolean containsEntity1(OWLEntity ent)
ent - Entity to be checked if present as entity 1 in a correspondence in this alignment.
true if ent participates as entity 1 of a correspondence in this alignment, false otherwise.boolean containsEntity1(IRI ent)
ent - IRI of entity to be checked if present as entity 1 in a correspondence in this alignment.
true if ent participates as entity 1 of a correspondence in this alignment, false otherwise.boolean containsEntity2(OWLEntity ent)
ent - Entity to be checked if present as entity 2 in a correspondence in this alignment.
true if ent participates as entity 2 of a correspondence in this alignment, false otherwise.boolean containsEntity2(IRI ent)
ent - IRI of entity to be checked if present as entity 2 in a correspondence in this alignment.
true if ent participates as entity 2 of a correspondence in this alignment, false otherwise.<T extends OWLEntity> Correspondence<T> getEntity1Corr(T ent)
null will be returned.
T - Entity type.ent - Entity 1 of the requested correspondence.
ent as entity 1, or null if no such correspondence exists.Correspondence<? extends OWLEntity> getEntity1Corr(IRI ent)
null will be returned.
ent - IRI of entity 1 of the requested correspondence.
ent as entity 1, or null if no such correspondence exists.<T extends OWLEntity> Correspondence<T> getEntity2Corr(T ent)
null will be returned.
T - Entity type.ent - Entity 2 of the requested correspondence.
ent as entity 2, or null if no such correspondence exists.Correspondence<? extends OWLEntity> getEntity2Corr(IRI ent)
null will be returned.
ent - IRI of entity 2 of the requested correspondence.
ent as entity 2, or null if no such correspondence exists.
<T extends OWLEntity> Correspondence<T> getEntityCorr(T ent1,
T ent2)
null will be returned.
T - Entity type.ent1 - Entity 1 of the requested correspondence.ent2 - Entity 2 of the requested correspondence.
ent as entity 1 and ent as entity 2,
or null if no such correspondence exists.
Correspondence<? extends OWLEntity> getEntityCorr(IRI ent1,
IRI ent2)
null will be returned.
ent1 - IRI of entity 1 of the requested correspondence.ent2 - IRI of entity 2 of the requested correspondence.
ent1 as entity 1 and ent2 as entity 2
or null if no such correspondence exists.
void addCorrespondence(Correspondence<? extends OWLEntity> corr)
throws MultiplicityException,
IllegalArgumentException,
IncompatibleOntologyException
corr - The correspondence to be added.
MultiplicityException - if multiplicity of correspondence is violated.
IncompatibleOntologyException - if either of the corresponding entities is
not contained in the signature of the according
aligned ontology.
IllegalArgumentException - if the argument is nullvoid removeCorrespondence(Correspondence<? extends OWLEntity> corr)
corr - The correspondence to be removed.void clear()
int size()
boolean isEmpty()
true iff this alignment contains no correspondences,
false otherwise.Alignment clone()
void attachListener(AlignmentListener listener)
AlignmentListener.
The AlignmentListener gets notified
when the alignment changes.
Calling this method with an AlignmentListener
that is already registered is a no-op.
listener - AlignmentListener to register.void detachListener(AlignmentListener listener)
AlignmentListener.
The AlignmentListener will be no longer
notified when the alignment changes.
Calling this method with an AlignmentListener
that is not registered is a no-op.
listener - AlignmentListener to deregister.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||