idl.tmt
Class ToolkitEnvironment
java.lang.Object
|
+--idl.tmt.ToolkitEnvironment
- public class ToolkitEnvironment
- extends java.lang.Object
Simple singleton class for keeping track of the indexed collections
and clusterers. Provides flexability to organize multiple
collections and clusterers for comparison purposes, but
will usually (probably) be used for single instances of each.
Created on May 11, 2004
- Author:
- jelsas
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
collections
private java.util.HashMap collections
clusterers
private java.util.HashMap clusterers
_instance
private static ToolkitEnvironment _instance
outputDir
private java.lang.String outputDir
logFile
private java.lang.String logFile
ToolkitEnvironment
private ToolkitEnvironment()
getInstance
public static ToolkitEnvironment getInstance()
addCollection
public void addCollection(java.lang.String collectionName,
IndexedCollection ic)
getCollection
public IndexedCollection getCollection(java.lang.String collectionName)
- Retrieves a collection from the shared repository. If a
collection exists in memory of that name, that collection
is returned. If not, an attempt is made to read the
collection off disk. If the collection is not found,
null is returned.
- Parameters:
collectionName - - Returns:
-
addClusterer
public void addClusterer(java.lang.String clustererName,
Clusterer cl)
getClusterer
public Clusterer getClusterer(java.lang.String clustererName)
- Retrieves a clusterer from the shared repository. If a
clusterer exists in memory of that name, that clusterer
is returned. If not, an attempt is made to read the
clusterer off disk. If the clusterer is not found,
null is returned.
- Parameters:
clustererName - - Returns:
-
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
setOutputDir
public void setOutputDir(java.lang.String outputDir)
getOutputDir
public java.lang.String getOutputDir()
setLogFile
public void setLogFile(java.lang.String logFile)
getLogFile
public java.lang.String getLogFile()