de.fzi.kadmos.api
Interface CorrespondenceFactory

All Known Implementing Classes:
SimpleCorrespondenceFactory

public interface CorrespondenceFactory

Abstract factory interface for creating Correspondence objects.

Since:
1.0.0
Version:
1.3.0
Author:
Juergen Bock
See Also:
Correspondence

Method Summary
<T extends OWLEntity>
Correspondence<T>
createCorrespondence(T entity1, T entity2)
          Creates a new correspondence between two entities of type T.
<T extends OWLEntity>
Correspondence<T>
createCorrespondence(T entity1, T entity2, double confidence)
          Creates a new correspondence between two entities of type T, with a specified confidence value.
 

Method Detail

createCorrespondence

<T extends OWLEntity> Correspondence<T> createCorrespondence(T entity1,
                                                             T entity2)
                                                         throws IncompatibleEntityTypesException
Creates a new correspondence between two entities of type T. No confidence value is specified.

Type Parameters:
T - Type of the entites participating in the correspondence created.
Parameters:
entity1 - Entity 1 of the correspondence to be created.
entity2 - Entity 2 of the correspondence to be created.
Returns:
The newly created correspondence.
Throws:
IncompatibleEntityTypesException - if entity 1 and entity 2 are of incompatible entity types.
Since:
1.0.0

createCorrespondence

<T extends OWLEntity> Correspondence<T> createCorrespondence(T entity1,
                                                             T entity2,
                                                             double confidence)
                                                         throws IncompatibleEntityTypesException
Creates a new correspondence between two entities of type T, with a specified confidence value.

Type Parameters:
T - Type of the entites participating in the correspondence created.
Parameters:
entity1 - Entity 1 of the correspondence to be created.
entity2 - Entity 2 of the correspondence to be created.
confidence - Confidence value.
Returns:
The newly created correspondence.
Throws:
IncompatibleEntityTypesException - if entity 1 and entity 2 are of incompatible entity types.
Since:
1.0.0


Copyright © 2012. All Rights Reserved.