public class RecordingReader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
currentRecordingIndex |
private Recording |
recording |
private ResultsFormat |
recordingFormat |
private boolean |
recordingOpened |
Constructor and Description |
---|
RecordingReader(Recording recording) |
RecordingReader(Recording recording,
ResultsFormat format) |
Modifier and Type | Method and Description |
---|---|
void |
closeRecording() |
private VariableValue |
findVariableValue(java.lang.String path,
ExperimentState modelState) |
int |
getAndIncrementCurrentIndex() |
ResultsFormat |
getRecordingFormat() |
int |
getRecordingIndex() |
private void |
openRecording() |
private void |
readParticlesVariable(java.lang.String path,
H5File h5File,
ExperimentState modelState,
boolean readAll) |
void |
readRecording(java.lang.String recordedVariable,
ExperimentState modelState,
boolean readAll) |
void |
readVariable(java.lang.String path,
H5File h5File,
ExperimentState modelState,
boolean readAll) |
void |
resetRecordingIndex() |
void |
setRecordingFormat(ResultsFormat recordingFormat) |
private int currentRecordingIndex
private Recording recording
private ResultsFormat recordingFormat
private boolean recordingOpened
public RecordingReader(Recording recording) throws GeppettoExecutionException
GeppettoExecutionException
public RecordingReader(Recording recording, ResultsFormat format) throws GeppettoExecutionException
GeppettoExecutionException
public void readRecording(java.lang.String recordedVariable, ExperimentState modelState, boolean readAll) throws GeppettoExecutionException
variables
- tree
- readAll
- GeppettoExecutionException
private void readParticlesVariable(java.lang.String path, H5File h5File, ExperimentState modelState, boolean readAll) throws GeppettoExecutionException
path
- h5File
- modelState
- readAll
- GeppettoExecutionException
public int getAndIncrementCurrentIndex()
public void readVariable(java.lang.String path, H5File h5File, ExperimentState modelState, boolean readAll) throws GeppettoExecutionException
path
- h5File
- parent
- readAll
- GeppettoExecutionException
private VariableValue findVariableValue(java.lang.String path, ExperimentState modelState)
public int getRecordingIndex()
public void resetRecordingIndex()
private void openRecording() throws GeppettoExecutionException
GeppettoExecutionException
public void closeRecording() throws GeppettoExecutionException
GeppettoExecutionException
public ResultsFormat getRecordingFormat()
public void setRecordingFormat(ResultsFormat recordingFormat)