public class FileHelper
extends java.lang.Object
| Constructor and Description |
|---|
FileHelper()
Default constructor.
|
FileHelper(java.lang.String group)
Overloaded constructor that sets the prefix/group of the Sampling Group.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSamplingSet(java.util.ArrayList<DataItem> samp)
Adds a Sampling Set to the array containing some (or all) the data to be printed to file.
|
void |
dumpToFile(long frequency)
Start the dumping process.
|
void |
dumpToFile(long frequency,
double prec)
Start the dumping process.
|
java.lang.String |
getFileName() |
void |
initialize(int freq) |
void |
removeSamplingSets()
Re initialize the data, erasing everything.
|
void |
setFilePrefix(java.lang.String prefix)
Sets the prefix for the filename.
|
void |
setHeaderFile(java.lang.String header)
Sets the header that will be printed at the beginning of the file.
|
public FileHelper()
public FileHelper(java.lang.String group)
group - public void addSamplingSet(java.util.ArrayList<DataItem> samp)
samp - Sampling Set (data from one property), to be added to the set of data to be printed to the file.public void removeSamplingSets()
public void setHeaderFile(java.lang.String header)
header - Header of the content of the file. Is a resume of the properties.public void setFilePrefix(java.lang.String prefix)
prefix - public java.lang.String getFileName()
public void initialize(int freq)
public void dumpToFile(long frequency)
frequency - Frequency at which the data is to be separated in the printout file.public void dumpToFile(long frequency,
double prec)
frequency - Frequency at which the data is to be separated in the printout file.prec - How much of the Frequency will each entry take as a valid interval of time to look forward and backward for data.