|
||||||||||
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.ABF2_parser
public class ABF2_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 | |
---|---|
ABF2_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[] |
getABF2ADCInfo(ABF_Section ADCSection)
|
ABF_FileInfo |
getABF2FileInfo()
|
float |
getABFVersion()
|
long |
getAbsoluteTime(long row)
Returns the absolute time for the sample row in milliseconds""" |
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)
|
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""" |
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""" |
void |
loadMetaData()
|
void |
parseABF2Header()
|
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 ABF2_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 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[] getABF2ADCInfo(ABF_Section ADCSection) 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 getABF2FileInfo() throws java.io.IOException
java.io.IOException
public long getStartTime()
getStartTime
in interface ABF_parser
getStartTime
in class AbstractABF_parser
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 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 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 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 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 |