Public Member Functions | |
boolean | connect (String server, String sinkName) |
Connect to the RBNB server with two sinks one for a data stream and one for a coordinated video stream. | |
void | disconnect () |
Disconnect the RBNB connection. | |
void | fetchData (String dataSourcePath, double startTime, double duration) |
Fetches data according to the values supplied. | |
void | fetchData (String dataSourcePath, double startTime, double duration, String requestType) |
Fetch both the data and the time values for a single channel,. | |
void | makeMovie (float frameRate, String oURL, String videoSourcePath, int dataItemsToSkip) throws Exception |
Make a movie (extension *.mov) of the images that corresond to the times currently in the time array (from the last data fetch). | |
int | getNumberOfItems () |
Returns the number of items fetched by the last fetch request. | |
double[] | getTimeArray () |
Returns the array of times corresponding to the data items fetched. | |
double[] | getDataArray () |
Returns the arrat of data items. | |
byte[] | getRBNBImage (String videoSourcePath, double videoTime) throws SAPIException |
Get the "nearest" image after the time specified. | |
Static Public Member Functions | |
void | main (String[] args) |
boolean | setArgs (String[] args) throws Exception |
double | getTimeOrDouble (String arg) throws Exception |
Static Public Attributes | |
boolean | DEBUG = false |
Static Package Functions | |
[static initializer] | |
Package Attributes | |
double[] | dataArray = new double[0] |
double[] | timeArray = new double[0] |
Sink | dataSink |
Sink | videoSink |
boolean | connected = false |
int | videoWidth = 480 |
int | videoHeight = 320 |
byte[] | prevImage = (byte[]) null |
Definition at line 52 of file DataVideoSink.java.
|
Connect to the RBNB server with two sinks one for a data stream and one for a coordinated video stream.
Definition at line 387 of file DataVideoSink.java. References org.nees.rbnb.DataVideoSink.connect(). Referenced by org.nees.rbnb.DataVideoSink.connect(). |
|
Fetch both the data and the time values for a single channel,.
Definition at line 430 of file DataVideoSink.java. |
|
Fetches data according to the values supplied.
Definition at line 417 of file DataVideoSink.java. References org.nees.rbnb.DataVideoSink.fetchData(). Referenced by org.nees.rbnb.DataVideoSink.fetchData(). |
|
Returns the arrat of data items.
Definition at line 535 of file DataVideoSink.java. |
|
Returns the number of items fetched by the last fetch request.
Definition at line 519 of file DataVideoSink.java. |
|
Get the "nearest" image after the time specified. Throws exceptions if the requests times out or if the data is not availavbe.
Definition at line 607 of file DataVideoSink.java. References org.nees.rbnb.DataVideoSink.getRBNBImage(). Referenced by org.nees.rbnb.DataVideoSink.getRBNBImage(). |
|
Returns the array of times corresponding to the data items fetched.
Definition at line 527 of file DataVideoSink.java. |
|
Make a movie (extension *.mov) of the images that corresond to the times currently in the time array (from the last data fetch). The images for the movie are from the image source specified by videoSourcePath. The movie is written to disk at the file specified by oURL (ie "file:/tmp/movie.mov). The items in TimeArray are treated as time marks for the images, intermitent time items can be skipped, using dataItemsToSkip. To find a image for every time stamp in timeArray, set dataItemsToSkip to zero (0). Setting dataItemsToSkip to 9 would use timeArray[0], timeArray[10], timeArray[20], etc. This throws exceptions when the movie can not be built or written.
Definition at line 490 of file DataVideoSink.java. References org.nees.rbnb.JpegImagesToMovie.createMediaLocator(), org.nees.rbnb.DataVideoSink.makeMovie(), and org.nees.rbnb.JpegImagesToMovie.makeMovieFromPullBufferDataSource(). Referenced by org.nees.rbnb.DataVideoSink.makeMovie(). |