|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dfg.oc.logfileanalyzer.DataMemory
public class DataMemory
The DataMemory
stores the DataElement
s of all
iterations of an experiment. It relies on the
DataImporterInterface
to read complete log-files and provides
a method to search for DataElement
s by their iteration
number.
Field Summary | |
---|---|
private Vector<DataElement> |
data
Contains all DataElement s of an experiment. |
private File |
logFile
The log-file that will be read. |
Constructor Summary | |
---|---|
DataMemory(File _logFile)
Creates a new DataMemory that stores all iterations of an
experiment. |
Method Summary | |
---|---|
DataElement |
getFirstElement()
Returns the DataElement of the first iteration. |
DataElement |
getLastElement()
Returns the DataElement of the last iteration. |
void |
readData()
Reads a complete log-file and stores the contained classifier sets iterationwise. |
private void |
saveElement(DataElement _element)
Stores a DataElement in the memory and updates the
object's next- and previous-references. |
DataElement |
searchElement(double _iteration)
Searches for a DataElement by its iteration number. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Vector<DataElement> data
DataElement
s of an experiment.
private File logFile
Constructor Detail |
---|
public DataMemory(File _logFile)
DataMemory
that stores all iterations of an
experiment.
_logFile
- The log-file that will be read.Method Detail |
---|
public void readData()
private void saveElement(DataElement _element)
DataElement
in the memory and updates the
object's next- and previous-references.
_element
- DataElement
that will be storedpublic DataElement getLastElement()
DataElement
of the last iteration. Returns
null
if no DataElement
s are stored in this
memory.
DataElement
of the last iterationpublic DataElement getFirstElement()
DataElement
of the first iteration. Returns
null
if no DataElement
s are stored in this
memory.
DataElement
of the first iterationpublic DataElement searchElement(double _iteration)
DataElement
by its iteration number. If the
iteration number is not present in this memory, the method returns the
DataElement
whose iteration number is closest to the given
iteration. If no elements are stored in this memory, the method returns
null
.
_iteration
- an iteration number
DataElement
whose iteration number is closest to
_iteration
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |