java.lang.Object
feynman.framework.datastore.DataStoreFactory
- public class DataStoreFactory
- extends java.lang.Object
Factory class for the creation of particular DataStore implementation.
The frameworkd currently supports the DataStoreFile implementation only.
- Version:
- $Revision: 1.1.1.1 $ $Date: 2002/11/12 02:25:41 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
private static final DataStoreFactory INSTANCE
DataStoreFactory
private DataStoreFactory()
getInstance
public static DataStoreFactory getInstance()
- Method to retrieve an instance of the class.
create
public DataStore create(java.lang.String type)
throws InvalidDataStoreException
- Method to create the DataStore object that has been specified
in the Simulation.properties file in the following manner:
# Define the data storage mechanism to be used.
DataStore=file
#DataStore=dbms
# Define the data source destination that the measurement data will be stored in.
DataStoreFile=data.csv
#DataStoreTable=table
Note: If an invalid data store is defined in the properties file
the Controller class will throw and InvalidDataStoreException.