|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsonification.dataimport.visbards_resourcetoolkit.repository.resource.ResourceReaderCombined
public class ResourceReaderCombined
| Constructor Summary | |
|---|---|
ResourceReaderCombined(ResourceInfo info)
|
|
| Method Summary | |
|---|---|
void |
close()
Close the resource. |
void |
fastForward(double destinationTime)
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()
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()
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 ResourceReaderCombined(ResourceInfo info)
throws SonificationException
SonificationException| Method Detail |
|---|
public java.lang.String getCentricity()
getCentricity in interface ResourceReaderpublic java.lang.String getName()
getName in interface ResourceReaderpublic ResourceInfo getInfo()
ResourceReader
getInfo 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 destinationTime)
fastForward in interface ResourceReaderpublic 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 | |||||||||