java.lang.Object |
↳ |
org.mbari.sql.QueryableImpl |
|
↳ |
vars.EXPDPersistenceService |
Class Overview
Fetches data external to VARS from the MBARI EXPD database. THis is a read-only
class.
Summary
[Expand]
Inherited Fields |
From class
org.mbari.sql.QueryableImpl
protected
final
DateFormat |
dateFormatUTC |
|
protected
final
Logger |
log |
|
|
[Expand]
Inherited Methods |
From class
org.mbari.sql.QueryableImpl
void
|
close()
|
QueryResults
|
executeQuery(String arg0)
|
<T>
T
|
executeQueryFunction(String arg0, QueryFunction<T> arg1)
|
int
|
executeUpdate(String arg0)
|
Connection
|
getConnection()
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0)
|
final
void
|
wait(long arg0, int arg1)
|
|
From interface
org.mbari.sql.IQueryable
abstract
QueryResults
|
executeQuery(String arg0)
|
abstract
<T>
T
|
executeQueryFunction(String arg0, QueryFunction<T> arg1)
|
|
From interface
vars.ExternalDataPersistenceService
|
Constants
public
static
final
int
SAMPLERATE_MILLSEC
Constant Value:
15000
(0x00003a98)
Public Constructors
public
EXPDPersistenceService
()
Public Methods
public
VideoMoment
findTimecodeNearDate
(String platform, Date date, int millisecTolerance)
Retrive the HD timecode nearest to the given date for a platform
Returns
- The HD Timcode closest to the Date. null is returned if no
timcode is found within the tolerance bounds
public
List<VideoMoment>
findTimecodesNearDate
(String platform, Date date, int millisecTolerance)
public
VideoMoment
interpolateTimecodeByDate
(String cameraIdentifier, Date date, int millisecTolerance, double frameRate)
Interpolates a given date to a timecode from data stored in the
datastore.
Parameters
cameraIdentifier
| The cameraIdentifier (e.g. Ventana or Tiburon) |
date
| The date of that we're interested in |
millisecTolerance
| Specifies the widthInMeters of the time window to pull samples
from the database |
frameRate
| The Frame rate to use. At MBARI, we use NTSC (29.97 fps) |
Returns
- The interpolated tape time value.