|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object viper.comparison.distances.DefaultMeasures
Stores the default measure information for each attribute type. These will be used when the user requests an evaluation on a type, but doesn't specify the metric and/or tolerance.
Constructor Summary | |
DefaultMeasures()
|
Method Summary | |
static java.lang.String |
getDefaultMetricFor(AbstractAttribute attr)
Gets the default metric for the given attribute data type. |
static java.lang.String |
getDefaultMetricFor(java.lang.String attrType)
Gets the default metric for the given attribute data type. |
static double |
getDefaultToleranceFor(AbstractAttribute attr)
Gets the current tolerance setting for the attribute type. |
static double |
getDefaultToleranceFor(java.lang.String attrType)
Gets the default tolerance for the attribute type. |
static void |
setDefaultMetricFor(AbstractAttribute attr,
java.lang.String metric)
Sets the default metric for the given attribute data type. |
static void |
setDefaultMetricFor(java.lang.String attrType,
java.lang.String metric)
Sets the default metric for the given attribute data type. |
static void |
setDefaultToleranceFor(AbstractAttribute attr,
double val)
Gets the current tolerance setting for the attribute type. |
static void |
setDefaultToleranceFor(java.lang.String attrType,
double val)
Gets the current tolerance setting for the attribute type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultMeasures()
Method Detail |
public static double getDefaultToleranceFor(java.lang.String attrType)
attrType
- the data type
public static double getDefaultToleranceFor(AbstractAttribute attr)
attr
- the attribute
public static void setDefaultToleranceFor(java.lang.String attrType, double val)
attrType
- the attribute data typeval
- the new default localization tolerance for the
attributepublic static void setDefaultToleranceFor(AbstractAttribute attr, double val)
attr
- the attribute data typeval
- the new default localization tolerance for the
attributepublic static void setDefaultMetricFor(java.lang.String attrType, java.lang.String metric) throws ImproperMetricException
attrType
- the type of datametric
- the new metric
ImproperMetricException
- if the metric is not valid
for the given attribute typepublic static void setDefaultMetricFor(AbstractAttribute attr, java.lang.String metric) throws ImproperMetricException
attr
- the type of datametric
- the new metric
ImproperMetricException
- if the metric is not valid
for the given attribute typepublic static java.lang.String getDefaultMetricFor(java.lang.String attrType)
attrType
- the type of data
public static java.lang.String getDefaultMetricFor(AbstractAttribute attr)
attr
- the type of data
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |