de.fzi.kadmos.api.impl
Class SimpleCorrespondenceFactory

java.lang.Object
  extended by de.fzi.kadmos.api.impl.SimpleCorrespondenceFactory
All Implemented Interfaces:
CorrespondenceFactory

public class SimpleCorrespondenceFactory
extends Object
implements CorrespondenceFactory

Correspondence factory that creates SimpleCorrespondence objects.

Since:
1.0.0
Version:
1.3.0
Author:
Juergen Bock

Method Summary
<T extends OWLEntity>
de.fzi.kadmos.api.impl.SimpleCorrespondence<T>
createCorrespondence(T entity1, T entity2)
          Creates a new correspondence between two entities of type T.
<T extends OWLEntity>
de.fzi.kadmos.api.impl.SimpleCorrespondence<T>
createCorrespondence(T entity1, T entity2, double confidence)
          Creates a new correspondence between two entities of type T, with a specified confidence value.
static SimpleCorrespondenceFactory getInstance()
          Gets the singleton instance of this factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static SimpleCorrespondenceFactory getInstance()
Gets the singleton instance of this factory.

Returns:
SimpleCorrespondenceFactory instance.
Since:
1.0.0

createCorrespondence

public <T extends OWLEntity> de.fzi.kadmos.api.impl.SimpleCorrespondence<T> createCorrespondence(T entity1,
                                                                                                 T entity2)
                                                                                      throws IncompatibleEntityTypesException
Creates a new correspondence between two entities of type T. No confidence value is specified.

Specified by:
createCorrespondence in interface CorrespondenceFactory
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.

createCorrespondence

public <T extends OWLEntity> de.fzi.kadmos.api.impl.SimpleCorrespondence<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.

Specified by:
createCorrespondence in interface CorrespondenceFactory
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.


Copyright © 2012. All Rights Reserved.