Package llnl.gnem.core.io
Class AbstractDataSource
java.lang.Object
llnl.gnem.core.io.AbstractDataSource
- All Implemented Interfaces:
DataSource
- Direct Known Subclasses:
FileDataSource
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
void
getData
(float[] dataArray) double
double
long
long
double
long
void
initiate()
void
print
(PrintStream ps) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface llnl.gnem.core.io.DataSource
close, getData, skipSamples
-
Field Details
-
totalNumSamples
protected long totalNumSamples -
nextSample
protected long nextSample -
numSamplesRemaining
protected long numSamplesRemaining -
station
-
channel
-
samplingRate
protected double samplingRate -
startTime
protected double startTime
-
-
Constructor Details
-
AbstractDataSource
public AbstractDataSource()
-
-
Method Details
-
getData
public void getData(float[] dataArray) - Specified by:
getData
in interfaceDataSource
-
getNumSamplesAvailable
public long getNumSamplesAvailable()- Specified by:
getNumSamplesAvailable
in interfaceDataSource
-
getTotalNumSamples
public long getTotalNumSamples()- Specified by:
getTotalNumSamples
in interfaceDataSource
-
getStation
- Specified by:
getStation
in interfaceDataSource
-
getChannel
- Specified by:
getChannel
in interfaceDataSource
-
getSamplingRate
public double getSamplingRate()- Specified by:
getSamplingRate
in interfaceDataSource
-
getNextSampleIndex
public long getNextSampleIndex()- Specified by:
getNextSampleIndex
in interfaceDataSource
-
getEpochStartTime
public double getEpochStartTime()- Specified by:
getEpochStartTime
in interfaceDataSource
-
getEpochEndTime
public double getEpochEndTime()- Specified by:
getEpochEndTime
in interfaceDataSource
-
getCurrentEpochTime
public double getCurrentEpochTime()- Specified by:
getCurrentEpochTime
in interfaceDataSource
-
initiate
public void initiate()- Specified by:
initiate
in interfaceDataSource
-
print
- Specified by:
print
in interfaceDataSource
-