java.lang.Object
feynman.framework.datastore.FileDataStore
- All Implemented Interfaces:
- DataStore
- public class FileDataStore
- extends java.lang.Object
- implements DataStore
File based implementation of the DataStore interface. This
class makes use of the toString() method defined in the
PhysicalMeasurement interface.
- 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 |
file
private java.io.File file
fw
private java.io.FileWriter fw
pw
private java.io.PrintWriter pw
FileDataStore
FileDataStore()
open
public void open(java.lang.String source)
throws ConnectionException
- Method to open a file for writing PhysicalMeasurement data to.
- Specified by:
open in interface DataStore
save
public void save(feynman.framework.system.PhysicalMeasurement pm)
- Method to write the PhysicalMeasurement data to the file.
- Specified by:
save in interface DataStore
close
public void close()
throws ConnectionException
- Method to close the PhysicalMeasurement data file for writing.
- Specified by:
close in interface DataStore