|
|
|||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
D - the type of Distance used as measurement for comparing database objectsO - the type of DatabaseObject for which a measurement is provided for comparisonpublic interface MeasurementFunction<O extends DatabaseObject,D extends Distance<D>>
Interface Measurement describes the requirements of any measurement function (e.g. distance function or similarity function), that provides a measurement for comparing database objects.
| Method Summary | |
|---|---|
D |
getDistanceFactory()
Method to get the distance functions factory. |
D |
infiniteDistance()
Provides an infinite distance. |
D |
nullDistance()
Provides a null distance. |
void |
setDatabase(Database<O> database)
Set the database that holds the associations for the DatabaseObject for which the measurements should be computed. |
D |
undefinedDistance()
Provides an undefined distance. |
D |
valueOf(String val)
Parse a string value into a distance |
| Method Detail |
|---|
void setDatabase(Database<O> database)
database - the database to be setD getDistanceFactory()
D infiniteDistance()
D nullDistance()
D undefinedDistance()
D valueOf(String val)
throws IllegalArgumentException
val - input string
IllegalArgumentException - on parsing error
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||