public class

EXPDPersistenceService

extends QueryableImpl
implements ExternalDataPersistenceService
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

Constants
int SAMPLERATE_MILLSEC
[Expand]
Inherited Fields
From class org.mbari.sql.QueryableImpl
Public Constructors
EXPDPersistenceService()
Constructs ...
Public Methods
VideoMoment findTimecodeNearDate(String platform, Date date, int millisecTolerance)
Retrive the HD timecode nearest to the given date for a platform
List<VideoMoment> findTimecodesNearDate(String platform, Date date, int millisecTolerance)
VideoMoment interpolateTimecodeByDate(String cameraIdentifier, Date date, int millisecTolerance, double frameRate)
Interpolates a given date to a timecode from data stored in the datastore.
[Expand]
Inherited Methods
From class org.mbari.sql.QueryableImpl
From class java.lang.Object
From interface org.mbari.sql.IQueryable
From interface vars.ExternalDataPersistenceService

Constants

public static final int SAMPLERATE_MILLSEC

Constant Value: 15000 (0x00003a98)

Public Constructors

public EXPDPersistenceService ()

Constructs ...

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.