| Constructor and Description |
|---|
IntervalFct(Project prj,
IntervalDesc desc2,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
Similarity |
calculateSimilarity(Attribute value1,
Attribute value2)
Computes the similarity of value1 and value2.
|
void |
clone(AttributeDesc descNEW,
boolean active)
Creates a new function which is the same function
as this but with a different description, namely descNEW.
|
AttributeDesc |
getDesc()
Returns the description of the attributes which can be compared
using this function
|
MultipleConfig |
getMultipleConfig() |
java.lang.String |
getName()
Returns the name of this function
|
Project |
getProject() |
boolean |
isSymmetric()
Specifies whether this function is symmetric or asymmetric
|
void |
setMultipleConfig(MultipleConfig mc) |
void |
setName(java.lang.String name)
Sets the name of this function to name
|
void |
setSymmetric(boolean symmetric)
Specifies whether this function is symmetric or not.
|
void |
update(java.util.Observable o,
java.lang.Object arg) |
public IntervalFct(Project prj, IntervalDesc desc2, java.lang.String name)
public Similarity calculateSimilarity(Attribute value1, Attribute value2) throws java.lang.Exception
ISimFctcalculateSimilarity in interface ISimFctvalue1 - the first valuevalue2 - the second valuejava.lang.Exceptionpublic AttributeDesc getDesc()
ISimFctpublic MultipleConfig getMultipleConfig()
getMultipleConfig in interface ISimFctpublic java.lang.String getName()
ISimFctpublic Project getProject()
getProject in interface ISimFctpublic boolean isSymmetric()
ISimFctisSymmetric in interface ISimFctpublic void setMultipleConfig(MultipleConfig mc)
setMultipleConfig in interface ISimFctpublic void setName(java.lang.String name)
ISimFctpublic void setSymmetric(boolean symmetric)
ISimFctsim is symmetric, sim(q,c) = sim(c,q)
should hold for all queries q and cases c this function is defined on.
Else the function is asymmetric.setSymmetric in interface ISimFctsymmetric - specifies whether this function is symmetric or not.public void update(java.util.Observable o,
java.lang.Object arg)
update in interface java.util.Observerpublic void clone(AttributeDesc descNEW, boolean active)
ISimFct