|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsonification.dataimport.visbards_resourcetoolkit.repository.resource.ResourceReaderMultifile
public class ResourceReaderMultifile
| Constructor Summary | |
|---|---|
ResourceReaderMultifile(ResourceInfo info)
|
|
| Method Summary | |
|---|---|
void |
addResourceReader(ResourceReader reader)
|
void |
close()
Close the resource. |
void |
fastForward(double time)
Fast forward to time x. |
Column[] |
getAllAvaliableColumns()
Returns an array of avaoiable 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()
Returns the name of this resource |
int |
getNumReadings()
Equivalent to getNumReadings(getTimeSpan()) (Can be accessed while the resource is closed) |
int |
getNumReadings(Range timeRange)
Returns the number of readings in the time range specified. |
Range |
getTimespan()
Returns the timespan of the resource. |
boolean |
hasNext()
Returns true if another reading is avaliable. |
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()
Returns the time value of the "next" reading, Double.NaN if hasNext() is false |
double |
peekTime()
Returns the time value of the "next" reading, Double.NaN if hasNext() is false |
void |
reset()
Shifts the reader position to the start of the resource. |
void |
skip(int n)
Skip the specified number of readings. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceReaderMultifile(ResourceInfo info)
| Method Detail |
|---|
public java.lang.String getName()
getName in interface ResourceReaderpublic ResourceInfo getInfo()
ResourceReader
getInfo in interface ResourceReaderpublic java.lang.String getCentricity()
getCentricity in interface ResourceReaderpublic Column[] getAllAvaliableColumns()
getAllAvaliableColumns in interface ResourceReaderpublic Range getTimespan()
getTimespan in interface ResourceReaderpublic int getNumReadings()
getNumReadings in interface ResourceReaderpublic int getNumReadings(Range timeRange)
getNumReadings in interface ResourceReaderpublic void reset()
reset in interface ResourceReaderpublic boolean hasNext()
hasNext in interface ResourceReaderpublic Reading next()
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 ResourceReader
public void addResourceReader(ResourceReader reader)
throws SonificationException
SonificationExceptionpublic void open()
open in interface ResourceReaderpublic boolean isOpen()
isOpen in interface ResourceReaderpublic void close()
ResourceReader
close in interface ResourceReader
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||