|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sump.analyzer.DeviceData
DeviceData encapsulates the data obtained by the analyzer during a single run. It also provides a method for (partially) saving the data to a file.
Data files will only contain the actual readout values. A value is a single logic level measurement of all channels at a particular time. This means a value is 32bits long. The value is encoded in hex and each value is followed by a new line.
In the java code each value is represented by an integer.
Field Summary | |
int |
triggerPosition
|
int[] |
values
|
Constructor Summary | |
|
DeviceData(java.io.File file)
Constructs DeviceData based on the data read from the given file. |
protected |
DeviceData(int[] values,
int triggerPosition)
Constructs DeviceData based on the given data. |
Method Summary | |
void |
writeToFile(java.io.File file)
Writes diagram data to given file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public final int[] values
public final int triggerPosition
Constructor Detail |
protected DeviceData(int[] values, int triggerPosition)
values
- 32bit values as read from devicetriggerPosition
- position of trigger as index of values arraypublic DeviceData(java.io.File file) throws java.io.IOException
file
- file to read device data from
java.io.IOException
- when reading from file failesMethod Detail |
public void writeToFile(java.io.File file) throws java.io.IOException
file
- file to write to
java.io.IOException
- when writing to file failes
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |