lempinen.neatseeker.core
Class WeighterFactory
java.lang.Object
|
+--lempinen.neatseeker.core.WeighterFactory
- public class WeighterFactory
- extends java.lang.Object
A Factory that churns out Weighters.
The static method getWeighter
is used for requesting
a suitable Weighter from the factory.
Based on the Configuration object and its
neatseeker.ir.weighter
property, the factory determines
the type of Weighter it should create.
The default configuration file etc/NeatSeeker.properties
shows how to configure different Weighters for the factory.
- Version:
- $Id: WeighterFactory.java,v 1.1 2000/09/25 20:22:14 lempinen Exp $
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
WeighterFactory
public WeighterFactory()
getWeighter
public static Weighter getWeighter(Configuration conf,
Repository repository,
Statistics statistics)
- Creates and initialises a Weighter based on the Configuration object.
The method also requires Repository and Statistics objects for
initialising the weighter.