Factory
public LocalDistance Factory(java.lang.String tipus,
java.lang.String tipus_desconegut)
throws FactoryException
Constructor for LocalDistances.
Given the name of the class to load, returns an instance of it.
This implementation of the factory pattern allows to load different
LocalDistance methods in a modular way without recompilation.
It also revieves the name of the missing value treatment method to load,
calling a MissingFactory to instantiate it.
- Parameters:
tipus
- String with the class name to load.
* @param tipus_desconegut String with the missing treatment method class name to load.
- Returns:
- LocalDistance subclass implementation.
- Throws:
FactoryException
- See Also:
LocalDistance
,
CBR.Distances.Unknown.Missing
,
CBR.Distances.Unknown.MissingFactory