public class SamplingDataCorrelator
extends java.lang.Object
| Constructor and Description |
|---|
SamplingDataCorrelator(java.lang.String group,
long frequency,
java.util.Date startTimestamp)
Default constructor, takes the parameters, stores them, and creates the filename.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSamplingSet(java.lang.String filename)
Registers a Sampling Set, and read the first line, obtaining the component and the property which sampled.
|
boolean |
consume()
Method that consumes one line on every cvs file, storing them on memory.
|
void |
dumpToFile()
Start the Correlation and Dumping to File process.
|
void |
dumpToFile(double prec)
Starts the correlation process.
|
java.lang.String |
getFilename() |
public SamplingDataCorrelator(java.lang.String group,
long frequency,
java.util.Date startTimestamp)
group - The name of the Sampling Group to which the data belongs to.frequency - The Frequency at which the data was sampled.startTimestamp - At which time that sampling process started.public void addSamplingSet(java.lang.String filename)
filaname - Name of the file in which the data for this Sampling Set was dumped.public void dumpToFile()
public void dumpToFile(double prec)
prec - How much of the Frequency will each entry take as a valid interval of time to look forward and backward for data.public boolean consume()
public java.lang.String getFilename()