de.fzi.kadmos.mocks
Class MockAlignment

java.lang.Object
  extended by de.fzi.kadmos.mocks.MockAlignment
All Implemented Interfaces:
Alignment, Evaluable, Cloneable, Iterable<Correspondence<? extends OWLEntity>>

public class MockAlignment
extends Object
implements Alignment

Empty mock implementation of the Alignment interface.

Author:
Juergen Bock

Constructor Summary
MockAlignment()
           
 
Method Summary
 void addCorrespondence(Correspondence<? extends OWLEntity> corr)
           
 void attachListener(AlignmentListener listener)
           
 void clear()
           
 MockAlignment clone()
           
 boolean contains(Correspondence<? extends OWLEntity> corr)
           
 boolean contains(IRI ent1, IRI ent2)
           
<T extends OWLEntity>
boolean
contains(T ent1, T ent2)
           
 boolean containsEntity1(IRI ent)
           
 boolean containsEntity1(OWLEntity ent)
           
 boolean containsEntity2(IRI ent)
           
 boolean containsEntity2(OWLEntity ent)
           
 void detachListener(AlignmentListener listener)
           
 Set<Correspondence<? extends OWLEntity>> getCorrespondences()
           
 Correspondence<? extends OWLEntity> getEntity1Corr(IRI ent)
           
<T extends OWLEntity>
Correspondence<T>
getEntity1Corr(T ent)
           
 Correspondence<? extends OWLEntity> getEntity2Corr(IRI ent)
           
<T extends OWLEntity>
Correspondence<T>
getEntity2Corr(T ent)
           
 Correspondence<? extends OWLEntity> getEntityCorr(IRI ent1, IRI ent2)
           
<T extends OWLEntity>
Correspondence<T>
getEntityCorr(T ent1, T ent2)
           
 OWLOntology getOntology1()
           
 OWLOntology getOntology2()
           
 boolean isEmpty()
           
 Iterator<Correspondence<? extends OWLEntity>> iterator()
           
 void removeCorrespondence(Correspondence<? extends OWLEntity> corr)
           
 int size()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockAlignment

public MockAlignment()
Method Detail

addCorrespondence

public void addCorrespondence(Correspondence<? extends OWLEntity> corr)
                       throws MultiplicityException
Specified by:
addCorrespondence in interface Alignment
Throws:
MultiplicityException

clear

public void clear()
Specified by:
clear in interface Alignment

clone

public MockAlignment clone()
Specified by:
clone in interface Alignment
Overrides:
clone in class Object

contains

public boolean contains(Correspondence<? extends OWLEntity> corr)
Specified by:
contains in interface Alignment

contains

public <T extends OWLEntity> boolean contains(T ent1,
                                              T ent2)
Specified by:
contains in interface Alignment

contains

public boolean contains(IRI ent1,
                        IRI ent2)
Specified by:
contains in interface Alignment

containsEntity1

public boolean containsEntity1(OWLEntity ent)
Specified by:
containsEntity1 in interface Alignment

containsEntity1

public boolean containsEntity1(IRI ent)
Specified by:
containsEntity1 in interface Alignment

containsEntity2

public boolean containsEntity2(OWLEntity ent)
Specified by:
containsEntity2 in interface Alignment

containsEntity2

public boolean containsEntity2(IRI ent)
Specified by:
containsEntity2 in interface Alignment

getCorrespondences

public Set<Correspondence<? extends OWLEntity>> getCorrespondences()
Specified by:
getCorrespondences in interface Alignment

getEntity1Corr

public <T extends OWLEntity> Correspondence<T> getEntity1Corr(T ent)
Specified by:
getEntity1Corr in interface Alignment

getEntity1Corr

public Correspondence<? extends OWLEntity> getEntity1Corr(IRI ent)
Specified by:
getEntity1Corr in interface Alignment

getEntity2Corr

public <T extends OWLEntity> Correspondence<T> getEntity2Corr(T ent)
Specified by:
getEntity2Corr in interface Alignment

getEntity2Corr

public Correspondence<? extends OWLEntity> getEntity2Corr(IRI ent)
Specified by:
getEntity2Corr in interface Alignment

getOntology1

public OWLOntology getOntology1()
Specified by:
getOntology1 in interface Alignment

getOntology2

public OWLOntology getOntology2()
Specified by:
getOntology2 in interface Alignment

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Alignment

removeCorrespondence

public void removeCorrespondence(Correspondence<? extends OWLEntity> corr)
Specified by:
removeCorrespondence in interface Alignment

size

public int size()
Specified by:
size in interface Alignment

iterator

public Iterator<Correspondence<? extends OWLEntity>> iterator()
Specified by:
iterator in interface Iterable<Correspondence<? extends OWLEntity>>

getEntityCorr

public <T extends OWLEntity> Correspondence<T> getEntityCorr(T ent1,
                                                             T ent2)
Specified by:
getEntityCorr in interface Alignment

getEntityCorr

public Correspondence<? extends OWLEntity> getEntityCorr(IRI ent1,
                                                         IRI ent2)
Specified by:
getEntityCorr in interface Alignment

attachListener

public void attachListener(AlignmentListener listener)
Specified by:
attachListener in interface Alignment

detachListener

public void detachListener(AlignmentListener listener)
Specified by:
detachListener in interface Alignment


Copyright © 2012. All Rights Reserved.