|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsonification.dataimport.visbards_resourcetoolkit.repository.resource.ResourceReaderCdf
public class ResourceReaderCdf
| Constructor Summary | |
|---|---|
ResourceReaderCdf(java.io.File file,
ResourceInfo info)
|
|
| Method Summary | |
|---|---|
void |
close()
Close the resource (reset will need to be called again before reading again) |
void |
fastForward(double time)
Move forward in the CDF file to the record with the specified time stamp. |
Column[] |
getAllAvaliableColumns()
Returns an array of avaliable columns (which will be presetn in reading) |
java.lang.String |
getCentricity()
Returns the centricity of this reader |
ResourceInfo |
getInfo()
Returns the resource info for this reader |
java.lang.String |
getName()
This method is declared in the ResourceReader interface. |
int |
getNumReadings()
Equivalent to getNumReadings(getTimeSpan()) (Can be accessed while the resource is closed) |
int |
getNumReadings(Range timerng)
This method is declared in the ResourceReader interface. |
Range |
getTimespan()
This method is declared in the ResourceReader interface. |
boolean |
hasNext()
This method is declared in the ResourceReader interface. |
boolean |
isOpen()
Returns true if the resource is currently open |
Reading |
next()
Read and return the next reading in the resource. |
void |
open()
Opens the files and "reset" the resource. |
Reading |
peekNext()
Read the next reading but do not advance the reader forward |
double |
peekTime()
Returns the time value of the "next" reading, Double.NaN if hasNext() is false |
void |
reset()
Reset the class so that a subsequent call to next() will return the first record in the CDF. |
void |
skip(int n)
Skip forward in the CDF by 'n' records. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceReaderCdf(java.io.File file,
ResourceInfo info)
throws SonificationException
SonificationException| Method Detail |
|---|
public ResourceInfo getInfo()
ResourceReader
getInfo in interface ResourceReaderpublic Column[] getAllAvaliableColumns()
getAllAvaliableColumns in interface ResourceReaderpublic java.lang.String getCentricity()
getCentricity in interface ResourceReaderpublic int getNumReadings()
getNumReadings in interface ResourceReaderpublic int getNumReadings(Range timerng)
getNumReadings in interface ResourceReaderpublic Reading next()
ResourceReader
next in interface ResourceReaderpublic Reading peekNext()
peekNext in interface ResourceReaderpublic double peekTime()
peekTime in interface ResourceReaderpublic void skip(int n)
skip in interface ResourceReaderpublic void fastForward(double time)
fastForward in interface ResourceReaderpublic java.lang.String getName()
getName in interface ResourceReaderpublic Range getTimespan()
getTimespan in interface ResourceReaderpublic void reset()
reset in interface ResourceReaderpublic boolean hasNext()
hasNext in interface ResourceReaderpublic void open()
open in interface ResourceReaderpublic boolean isOpen()
isOpen in interface ResourceReaderpublic void close()
close in interface ResourceReader
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||