|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.javaabf.AbstractABF_parser org.javaabf.ABF18_parser
public class ABF18_parser
Field Summary |
---|
Fields inherited from class org.javaabf.AbstractABF_parser |
---|
ifile |
Fields inherited from interface org.javaabf.ABF_parser |
---|
ADCNAMELEN, ADCUNITLEN, CACHE_BYTE_SIZE, CHAR, FLOAT, LONG, LONGLONG, SHORT |
Constructor Summary | |
---|---|
ABF18_parser(java.lang.String filename,
boolean debug)
|
Method Summary | |
---|---|
double[] |
convertVectorToDoubleArray(java.util.Vector inputVector)
|
int[] |
convertVectorToIntArray(java.util.Vector inputVector)
|
java.lang.String[] |
convertVectorToStringArray(java.util.Vector inputVector)
|
ABF_ADCInfo[] |
getABF1ADCInfos()
|
ABF_FileInfo |
getABF1FileInfo()
|
ABF_ProtocolInfo |
getABF1ProtocolInfo()
|
ABF_ADCInfo[] |
getABF2ADCInfo(ABF_Section ADCSection)
|
ABF_FileInfo |
getABF2FileInfo()
|
float |
getABFVersion()
|
long |
getAbsoluteTime(long row)
Returns the absolute time for the sample row in milliseconds""" |
double[] |
getChannelData(int channel)
Returns a list of the whole channel"s data.""" |
double[] |
getChannelData(int channel,
int decimate)
|
int[] |
getChannelIndices()
Returns a list of the channel indices, which is simply the order in which the channels appear in the file.""" |
java.lang.String[] |
getChannelNames()
|
int[] |
getChannelNumbers()
|
java.lang.String[] |
getChannelUnits()
|
java.lang.String |
getChunk(long index,
long secondIndex)
|
double |
getData(long row,
int ch)
"""Returns a specific data value at a time point in a specific channel.""" |
java.lang.String |
getDataFormat()
|
long |
getExperimentDuration()
Returns the duration of the experiment in milliseconds""" |
ABF_Section |
getNextABF_Section()
|
char |
getNextChar()
|
long |
getNextMYGUID()
|
int |
getNumberOfActualEpisodes()
|
int |
getNumberOfADC()
|
int |
getNumberOfEpisodes()
|
long |
getNumberOfRows()
"""Returns the number of sample rows.""" |
long |
getNumberOfSamplesPerEpisode()
|
java.lang.String |
getOperationMode()
|
ABF_ProtocolInfo |
getProtocolInfo(ABF_Section ProtocolSection)
|
long |
getRelativeTime(long row)
Returns the time relative to the start of the experiment in milliseconds""" |
double[] |
getRow(long row)
|
long |
getRowNumberByAbsoluteTime(double time)
"""Returns the row number for the absolute time (assuming ms).""" |
long |
getRowNumberByRelativeTime(double time)
"""Returns the row number for the relative time (assuming ms).""" |
double |
getSamplingRate()
|
short |
getSizeOfNumberInBytes()
Returns 2 for integers && 4 for floating point, depending on the data format.""" |
long |
getStartTime()
Returns the start of the file in milliseconds""" |
Tag[] |
getTags()
|
void |
loadInitialCache()
|
void |
loadMetaData()
|
void |
parseABF1Header()
|
void |
parseABF2Header()
|
void |
reloadCache(long byteOffset)
|
double |
scaleDatum(double datum,
int channel)
Could be problematic |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ABF18_parser(java.lang.String filename, boolean debug) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public float getABFVersion()
getABFVersion
in interface ABF_parser
getABFVersion
in class AbstractABF_parser
public double getSamplingRate()
getSamplingRate
in interface ABF_parser
getSamplingRate
in class AbstractABF_parser
public int getNumberOfEpisodes()
getNumberOfEpisodes
in interface ABF_parser
getNumberOfEpisodes
in class AbstractABF_parser
public void parseABF1Header() throws java.io.IOException
java.io.IOException
public void parseABF2Header() throws java.io.IOException
java.io.IOException
public int getNumberOfActualEpisodes()
getNumberOfActualEpisodes
in interface ABF_parser
getNumberOfActualEpisodes
in class AbstractABF_parser
public void loadMetaData() throws java.io.IOException
java.io.IOException
public short getSizeOfNumberInBytes()
getSizeOfNumberInBytes
in interface ABF_parser
getSizeOfNumberInBytes
in class AbstractABF_parser
public int getNumberOfADC()
getNumberOfADC
in interface ABF_parser
getNumberOfADC
in class AbstractABF_parser
public java.lang.String getOperationMode()
getOperationMode
in interface ABF_parser
getOperationMode
in class AbstractABF_parser
public ABF_ADCInfo[] getABF1ADCInfos() throws java.io.IOException
java.io.IOException
public ABF_ADCInfo[] getABF2ADCInfo(ABF_Section ADCSection) throws java.io.IOException
java.io.IOException
public ABF_ProtocolInfo getABF1ProtocolInfo() throws java.io.IOException
java.io.IOException
public ABF_ProtocolInfo getProtocolInfo(ABF_Section ProtocolSection) throws java.io.IOException
java.io.IOException
public char getNextChar() throws java.io.IOException
getNextChar
in class AbstractABF_parser
java.io.IOException
public double scaleDatum(double datum, int channel)
scaleDatum
in class AbstractABF_parser
public long getNextMYGUID() throws java.io.IOException
getNextMYGUID
in class AbstractABF_parser
java.io.IOException
public ABF_Section getNextABF_Section() throws java.io.IOException
getNextABF_Section
in class AbstractABF_parser
java.io.IOException
public java.lang.String getDataFormat()
getDataFormat
in interface ABF_parser
getDataFormat
in class AbstractABF_parser
public ABF_FileInfo getABF1FileInfo() throws java.io.IOException
java.io.IOException
public ABF_FileInfo getABF2FileInfo() throws java.io.IOException
java.io.IOException
public long getStartTime()
getStartTime
in interface ABF_parser
getStartTime
in class AbstractABF_parser
public Tag[] getTags() throws java.io.IOException
getTags
in interface ABF_parser
getTags
in class AbstractABF_parser
java.io.IOException
public java.lang.String getChunk(long index, long secondIndex) throws java.io.IOException
getChunk
in class AbstractABF_parser
java.io.IOException
public long getNumberOfSamplesPerEpisode()
getNumberOfSamplesPerEpisode
in interface ABF_parser
getNumberOfSamplesPerEpisode
in class AbstractABF_parser
public void loadInitialCache() throws java.io.IOException
loadInitialCache
in class AbstractABF_parser
java.io.IOException
public long getExperimentDuration()
getExperimentDuration
in interface ABF_parser
getExperimentDuration
in class AbstractABF_parser
public java.lang.String[] getChannelNames() throws java.io.IOException
getChannelNames
in interface ABF_parser
getChannelNames
in class AbstractABF_parser
java.io.IOException
public java.lang.String[] getChannelUnits() throws java.io.IOException
getChannelUnits
in interface ABF_parser
getChannelUnits
in class AbstractABF_parser
java.io.IOException
public int[] getChannelNumbers()
getChannelNumbers
in interface ABF_parser
getChannelNumbers
in class AbstractABF_parser
public int[] getChannelIndices()
getChannelIndices
in interface ABF_parser
getChannelIndices
in class AbstractABF_parser
public void reloadCache(long byteOffset) throws java.io.IOException
reloadCache
in class AbstractABF_parser
java.io.IOException
public long getAbsoluteTime(long row)
getAbsoluteTime
in interface ABF_parser
getAbsoluteTime
in class AbstractABF_parser
public long getRelativeTime(long row)
getRelativeTime
in interface ABF_parser
getRelativeTime
in class AbstractABF_parser
public double[] getChannelData(int channel) throws java.io.IOException
getChannelData
in interface ABF_parser
getChannelData
in class AbstractABF_parser
java.io.IOException
public double[] getChannelData(int channel, int decimate) throws java.io.IOException
getChannelData
in interface ABF_parser
getChannelData
in class AbstractABF_parser
java.io.IOException
public double[] getRow(long row) throws java.io.IOException
getRow
in interface ABF_parser
getRow
in class AbstractABF_parser
java.io.IOException
public long getNumberOfRows()
getNumberOfRows
in interface ABF_parser
getNumberOfRows
in class AbstractABF_parser
public long getRowNumberByAbsoluteTime(double time)
getRowNumberByAbsoluteTime
in interface ABF_parser
getRowNumberByAbsoluteTime
in class AbstractABF_parser
public long getRowNumberByRelativeTime(double time)
getRowNumberByRelativeTime
in interface ABF_parser
getRowNumberByRelativeTime
in class AbstractABF_parser
public double getData(long row, int ch)
getData
in interface ABF_parser
getData
in class AbstractABF_parser
public int[] convertVectorToIntArray(java.util.Vector inputVector)
public double[] convertVectorToDoubleArray(java.util.Vector inputVector)
public java.lang.String[] convertVectorToStringArray(java.util.Vector inputVector)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |