|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResourceReader
Defines methods that allow access to all the data of the reader.
| Method Summary | |
|---|---|
void |
close()
Close the resource. |
void |
fastForward(double time)
Fast forward to time x. |
Column[] |
getAllAvaliableColumns()
Returns an array of avaliable columns (which will be present in each reading returned by this reader) NOTE: these columns may include but are not limited to those described in the resource info. |
java.lang.String |
getCentricity()
Returns the centricity of this reader (Can be accessed while the resource is closed) |
ResourceInfo |
getInfo()
Returns the resource info for this reader |
java.lang.String |
getName()
Returns the name of this resource (Can be accessed while the resource is closed) |
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. |
| Method Detail |
|---|
java.lang.String getName()
java.lang.String getCentricity()
Range getTimespan()
int getNumReadings()
int getNumReadings(Range timeRange)
void reset()
boolean hasNext()
ResourceInfo getInfo()
Column[] getAllAvaliableColumns()
Reading next()
Reading peekNext()
double peekTime()
void skip(int n)
void fastForward(double time)
void open()
boolean isOpen()
void close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||