de.unima.alcomox.mapping
Class MappingFamiliy

java.lang.Object
  extended by de.unima.alcomox.mapping.MappingFamiliy

public class MappingFamiliy
extends java.lang.Object

A mapping familiy is a set of mapping togeterh with the information which matcher generated which mapping. It can be used to generate a merged mapping, with several different as adjustments/aggregations of confidence values.


Constructor Summary
MappingFamiliy()
          Constructs an empty mapping family.
 
Method Summary
 void addMapping(java.lang.String matcherId, Mapping mapping)
          Adds a mapping to this family of mappings.
 Mapping getMergedMappingVC()
          Returns the merged mapping where confindences have been computed in a way such that the following holds for two correspondences c1 and c2: (1) conf(c1) <h; conf(c2) iff less systems found c1 (Vote)
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MappingFamiliy

public MappingFamiliy()
Constructs an empty mapping family.

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

addMapping

public void addMapping(java.lang.String matcherId,
                       Mapping mapping)
Adds a mapping to this family of mappings.

Parameters:
matcherId - Id of the matcher which generated the mapping.
mapping - Mapping to be added.

getMergedMappingVC

public Mapping getMergedMappingVC()
Returns the merged mapping where confindences have been computed in a way such that the following holds for two correspondences c1 and c2: (1) conf(c1) <h; conf(c2) iff less systems found c1 (Vote). (2) conf(c1) <h; conf(c2) iff the same number of systems found c1 and c2 but c1 has a lower total of confidence values (Confidence). All confidences are spanned to [0.0, 1.0] before computing this.

Returns:
The merged mapping.