it.unimi.dico.islab.idbs2.map
Class MappingSet

java.lang.Object
  extended by it.unimi.dico.islab.idbs2.map.MappingSet

public class MappingSet
extends Object

Container for a set of Mappings representing the high level matching between two Documents or between two KnowledgeChunks.

Author:
Vegeziel
See Also:
KnowledgeChunk, Mapping, Document

Constructor Summary
protected MappingSet()
          Empty constructor needed for Hibernate compatibility.
  MappingSet(String source, String target, String type, double affinity, String comment)
           
 
Method Summary
 Mapping addMapping(Relation r, String source, String target, MappingSet matchingAxioms, double similarity, double confidence)
           Adds a mapping to this MappingSet.
 Double getAffinity()
           
 String getComment()
           
 Configuration getConf()
           
 Date getCreationDate()
           
 Integer getId()
           
 Set<Mapping> getMappings()
           
 String getSource()
           
 String getSourceConnectionString()
           
 String getTarget()
           
 String getTargetConnectionString()
           
 String getType()
           
 User getUser()
           
 void setAffinity(Double affinity)
           
 void setComment(String comment)
           
 void setConf(Configuration conf)
           
 void setCreationDate(Date creationDate)
           
 void setId(Integer id)
           
 void setMappings(Set<Mapping> mappings)
           
 void setSource(String source)
           
 void setSourceConnectionString(String sourceConnectionString)
           
 void setTarget(String target)
           
 void setTargetConnectionString(String targetConnectionString)
           
 void setType(String type)
           
 void setUser(User user)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MappingSet

protected MappingSet()
Empty constructor needed for Hibernate compatibility. Direct use is discouraged.


MappingSet

public MappingSet(String source,
                  String target,
                  String type,
                  double affinity,
                  String comment)
Method Detail

addMapping

public Mapping addMapping(Relation r,
                          String source,
                          String target,
                          MappingSet matchingAxioms,
                          double similarity,
                          double confidence)

Adds a mapping to this MappingSet.

Parameters:
r - comparison relation used to obtain a matching value (equality, synonymity, meronymy, ecc.)
source - a string representing the source element of the comparison
target - a string representing the target element of the comparison
similarity - the result value of the comparison
confidence - a double value representing the "level of trust" of this mapping

getId

public Integer getId()

getCreationDate

public Date getCreationDate()

setCreationDate

public void setCreationDate(Date creationDate)

getMappings

public Set<Mapping> getMappings()

setMappings

public void setMappings(Set<Mapping> mappings)

setId

public void setId(Integer id)

getUser

public User getUser()

setUser

public void setUser(User user)

getConf

public Configuration getConf()

setConf

public void setConf(Configuration conf)

getSource

public String getSource()

setSource

public void setSource(String source)

getTarget

public String getTarget()

setTarget

public void setTarget(String target)

getSourceConnectionString

public String getSourceConnectionString()

setSourceConnectionString

public void setSourceConnectionString(String sourceConnectionString)

getTargetConnectionString

public String getTargetConnectionString()

setTargetConnectionString

public void setTargetConnectionString(String targetConnectionString)

getComment

public String getComment()

setComment

public void setComment(String comment)

getType

public String getType()

setType

public void setType(String type)

getAffinity

public Double getAffinity()

setAffinity

public void setAffinity(Double affinity)