edu.whoi.ursa.argoDatabase.entity
Class Solo2

java.lang.Object
  extended by edu.whoi.ursa.argoDatabase.entity.Solo2

@Entity(name="Solo2")
public class Solo2
extends java.lang.Object

Solo-II class. Contains all info related to Solo-II floats, including: Configuration Listings Uploaded mission parameters

Author:
Alexander K. Ekholm

Nested Class Summary
static class Solo2.Configuration
          Configuration class for Solo-II.
static class Solo2.Listing
          Solo-II listing class.
static class Solo2.MissionParameters
          Solo II Mission Parameters.
static class Solo2.QueuedMissionParameters
          Queued Mission Parameters.
static class Solo2.ReportedMissionParameters
          Reported Mission Parameters.
static class Solo2.SavedMissionParameters
          Saved Mission Parameters.
static class Solo2.SummaryTable
          This class is used to print a summary table of known Solo IIs to the web.
 
Field Summary
private  java.lang.Integer aoml
           
private  java.lang.Long imei
           
private  java.lang.Double lastCycleLengthInDays
           
private  java.lang.Integer lastDive
           
private  java.util.Calendar lastReported
           
private  java.util.Calendar nextSurface
           
private  java.lang.Integer nListings
           
private  java.lang.Integer nQueuedMissionParameters
           
private  java.lang.Integer nReportedMissionParameters
           
private  java.lang.Integer nUploadedMissionParameters
           
private  java.lang.Integer transmissionId
           
static Updator updator
          Updator for Solo-II listings
private  java.lang.Integer whoi
           
private  java.lang.Integer wmo
           
 
Constructor Summary
Solo2()
           
 
Method Summary
 java.lang.Integer getAoml()
           
static java.lang.Integer getAomlFromWhoi(java.lang.Integer whoi)
          Get WMO ID from WHOI ID.
static java.lang.Integer getAomlFromWmo(java.lang.Integer wmo)
           
static Solo2 getByWhoi(java.lang.Integer whoi)
          get solo2 by id
static Solo2 getByWmo(java.lang.Integer wmo)
          get solo2 by id
 java.lang.Long getImei()
           
 java.lang.Double getLastCycleLengthInDays()
           
 java.lang.Integer getLastDive()
           
 java.util.Calendar getLastReported()
           
 java.util.List<Solo2.Listing> getListings()
          Get Listings
 java.util.Calendar getNextSurface()
           
protected static java.util.Calendar getNextSurface(java.lang.Integer whoi)
          Get next anticipated surfacing date from whoi ID
 java.lang.Integer getnListings()
           
 java.lang.Integer getnQueuedMissionParameters()
           
 java.lang.Integer getnReportedMissionParameters()
           
 java.lang.Integer getnUploadedMissionParameters()
           
 java.lang.Integer getTransmissionId()
           
 java.lang.Integer getWhoi()
           
static java.lang.Integer getWhoiFromAoml(java.lang.Integer aoml)
           
static java.lang.Integer getWhoiFromWmo(java.lang.Integer wmo)
           
 java.lang.Integer getWmo()
           
static java.lang.Integer getWmoFromAoml(java.lang.Integer aoml)
           
static java.lang.Integer getWmoFromWhoi(java.lang.Integer whoi)
          Get WMO ID from WHOI ID.
static void main(java.lang.String[] args)
          Update all listings in debug mode
private  Form printConfigurationSection(Form form)
          Print Solo2.Configuration section if exists
private  Form printListingSection(Form form)
          Print listing section to form
private  Form printMissionParametersSection(Form form)
          print mission parameters section
 Form printOverview(org.w3c.dom.Element element)
           
 void setAoml(java.lang.Integer aoml)
           
 void setImei(java.lang.Long imei)
           
 void setLastCycleLengthInDays(java.lang.Double lastCycleLengthInDays)
           
 void setLastDive(java.lang.Integer lastDive)
           
 void setLastReported(java.util.Calendar lastReported)
           
 void setNextSurface(java.util.Calendar nextSurface)
           
 void setnListings(java.lang.Integer nListings)
           
 void setnQueuedMissionParameters(java.lang.Integer nQueuedMissionParameters)
           
 void setnReportedMissionParameters(java.lang.Integer nReportedMissionParameters)
           
 void setnUploadedMissionParameters(java.lang.Integer nUploadedMissionParameters)
           
 void setTransmissionId(java.lang.Integer transmissionId)
           
 void setWhoi(java.lang.Integer whoi)
           
 void setWmo(java.lang.Integer wmo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

updator

public static final Updator updator
Updator for Solo-II listings


whoi

private java.lang.Integer whoi

wmo

private java.lang.Integer wmo

aoml

private java.lang.Integer aoml

nListings

private java.lang.Integer nListings

lastDive

private java.lang.Integer lastDive

lastCycleLengthInDays

private java.lang.Double lastCycleLengthInDays

lastReported

private java.util.Calendar lastReported

nextSurface

private java.util.Calendar nextSurface

nReportedMissionParameters

private java.lang.Integer nReportedMissionParameters

nQueuedMissionParameters

private java.lang.Integer nQueuedMissionParameters

nUploadedMissionParameters

private java.lang.Integer nUploadedMissionParameters

imei

private java.lang.Long imei

transmissionId

private java.lang.Integer transmissionId
Constructor Detail

Solo2

public Solo2()
Method Detail

getByWhoi

public static Solo2 getByWhoi(java.lang.Integer whoi)
get solo2 by id

Parameters:
whoi -
Returns:
Solo2 object or null

getByWmo

public static Solo2 getByWmo(java.lang.Integer wmo)
get solo2 by id

Parameters:
whoi -
Returns:
Solo2 object or null

getNextSurface

protected static java.util.Calendar getNextSurface(java.lang.Integer whoi)
Get next anticipated surfacing date from whoi ID

Parameters:
whoi - ID
Returns:
(Calendar) next anticipated surfacing or null if not found

main

public static void main(java.lang.String[] args)
Update all listings in debug mode

Parameters:
args -

getAoml

public java.lang.Integer getAoml()
Returns:
the aoml

getImei

public java.lang.Long getImei()
Returns:
the imei

getLastCycleLengthInDays

public java.lang.Double getLastCycleLengthInDays()
Returns:
the lastCycleLengthInDays

getLastDive

public java.lang.Integer getLastDive()
Returns:
the lastDive

getLastReported

public java.util.Calendar getLastReported()
Returns:
the lastReported

getListings

public java.util.List<Solo2.Listing> getListings()
Get Listings

Returns:
listings

getNextSurface

public java.util.Calendar getNextSurface()
Returns:
the nextSurface

getnListings

public java.lang.Integer getnListings()
Returns:
the nListings

getnQueuedMissionParameters

public java.lang.Integer getnQueuedMissionParameters()
Returns:
the nQueuedMissionParameters

getnReportedMissionParameters

public java.lang.Integer getnReportedMissionParameters()
Returns:
the nReportedMissionParameters

getnUploadedMissionParameters

public java.lang.Integer getnUploadedMissionParameters()
Returns:
the nUploadedMissionParameters

getTransmissionId

public java.lang.Integer getTransmissionId()
Returns:
the transmissionId

getWhoi

public java.lang.Integer getWhoi()
Returns:
the whoi

getWmo

public java.lang.Integer getWmo()
Returns:

printConfigurationSection

private Form printConfigurationSection(Form form)
Print Solo2.Configuration section if exists

Parameters:
form -
Returns:

printListingSection

private Form printListingSection(Form form)
Print listing section to form

Parameters:
form -
Returns:

printMissionParametersSection

private Form printMissionParametersSection(Form form)
print mission parameters section

Parameters:
form -
Returns:

printOverview

public Form printOverview(org.w3c.dom.Element element)
Parameters:
element -
Returns:

setAoml

public void setAoml(java.lang.Integer aoml)
Parameters:
aoml - the aoml to set

setImei

public void setImei(java.lang.Long imei)
Parameters:
imei - the imei to set

setLastCycleLengthInDays

public void setLastCycleLengthInDays(java.lang.Double lastCycleLengthInDays)
Parameters:
lastCycleLengthInDays - the lastCycleLengthInDays to set

setLastDive

public void setLastDive(java.lang.Integer lastDive)
Parameters:
lastDive - the lastDive to set

setLastReported

public void setLastReported(java.util.Calendar lastReported)
Parameters:
lastReported - the lastReported to set

setNextSurface

public void setNextSurface(java.util.Calendar nextSurface)
Parameters:
nextSurface - the nextSurface to set

setnListings

public void setnListings(java.lang.Integer nListings)
Parameters:
nListings - the nListings to set

setnQueuedMissionParameters

public void setnQueuedMissionParameters(java.lang.Integer nQueuedMissionParameters)
Parameters:
nQueuedMissionParameters - the nQueuedMissionParameters to set

setnReportedMissionParameters

public void setnReportedMissionParameters(java.lang.Integer nReportedMissionParameters)
Parameters:
nReportedMissionParameters - the nReportedMissionParameters to set

setnUploadedMissionParameters

public void setnUploadedMissionParameters(java.lang.Integer nUploadedMissionParameters)
Parameters:
nUploadedMissionParameters - the nUploadedMissionParameters to set

setTransmissionId

public void setTransmissionId(java.lang.Integer transmissionId)
Parameters:
transmissionId - the transmissionId to set

setWhoi

public void setWhoi(java.lang.Integer whoi)
Parameters:
whoi - the whoi to set

setWmo

public void setWmo(java.lang.Integer wmo)
Parameters:
wmo - the wmo to set

getWmoFromWhoi

public static java.lang.Integer getWmoFromWhoi(java.lang.Integer whoi)
Get WMO ID from WHOI ID.

Parameters:
wmo -
Returns:
aoml

getAomlFromWhoi

public static java.lang.Integer getAomlFromWhoi(java.lang.Integer whoi)
Get WMO ID from WHOI ID.

Parameters:
wmo -
Returns:
aoml

getWmoFromAoml

public static java.lang.Integer getWmoFromAoml(java.lang.Integer aoml)
Parameters:
aoml -
Returns:

getWhoiFromAoml

public static java.lang.Integer getWhoiFromAoml(java.lang.Integer aoml)
Parameters:
aoml -
Returns:

getWhoiFromWmo

public static java.lang.Integer getWhoiFromWmo(java.lang.Integer wmo)
Parameters:
wmo -
Returns:

getAomlFromWmo

public static java.lang.Integer getAomlFromWmo(java.lang.Integer wmo)
Parameters:
wmo -
Returns: