Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

feynman.framework.datastore
Class DataStoreFactory  view DataStoreFactory download DataStoreFactory.java

java.lang.Object
  extended byfeynman.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 $

Field Summary
private static DataStoreFactory INSTANCE
           
 
Constructor Summary
private DataStoreFactory()
           
 
Method Summary
 DataStore create(java.lang.String type)
          Method to create the DataStore object that has been specified in the Simulation.properties file in the following manner:
static DataStoreFactory getInstance()
          Method to retrieve an instance of the class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

private static final DataStoreFactory INSTANCE
Constructor Detail

DataStoreFactory

private DataStoreFactory()
Method Detail

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.