edu.whoi.ursa.argoDatabase.entity
Class Solo.ARGOSListing

java.lang.Object
  extended by edu.whoi.ursa.argoDatabase.servletUtil.page.BasePage.OverviewItem.OverviewPrintFunctions
      extended by edu.whoi.ursa.argoDatabase.entity.Solo.ARGOSListing
Enclosing class:
Solo

@Entity(name="Solo_Listing_ARGOS")
public static class Solo.ARGOSListing
extends BasePage.OverviewItem.OverviewPrintFunctions

Solo ARGOS Listing

Author:
Alexander K. Ekholm

Nested Class Summary
static class Solo.ARGOSListing.EngineeringData
          Solo ARGOS Listing engineering data
static class Solo.ARGOSListing.ID
          Solo ARGOS Listing unique identifier
static class Solo.ARGOSListing.Messages
          Solo ARGOS messages
static class Solo.ARGOSListing.Positions
          Solo ARGOS Listing reported positions
static class Solo.ARGOSListing.SummaryTable
          Solo ARGOS Listing summary table
static class Solo.ARGOSListing.SurfaceMode
          Solo ARGOS Listing surface mode data
 
Field Summary
private  java.lang.Integer aoml
           
private static java.lang.String[][] COLOR_CODES
           
private  java.lang.String driftData
           
private  Solo.ARGOSListing.EngineeringData engineeringData
           
private  ADBFile file
           
private  java.lang.String hexDump
           
private  Solo.ARGOSListing.ID id
           
private static java.lang.String listingDirectory
           
private  Solo.ARGOSListing.Messages messages
           
private static java.lang.String NOTSET
           
private  Solo.ARGOSListing.Positions positions
           
private  java.lang.String profileData
           
private  Solo.ARGOSListing.SurfaceMode surfaceBeaconMode
           
private static java.lang.String type
           
static Updator updator
           
private  java.lang.Integer whoi
           
private  java.lang.Integer wmo
           
 
Constructor Summary
Solo.ARGOSListing()
           
 
Method Summary
static Form addLegendSection(Form form)
          Add legend section to ARGOS listing form
 java.lang.String getDriftData()
           
 Solo.ARGOSListing.EngineeringData getEngineeringData()
           
 ADBFile getFile()
           
 java.lang.String getHexDump()
           
 Solo.ARGOSListing.ID getId()
           
static java.lang.String getLink(java.lang.Integer whoi)
          Get relative href for WHOI
private static java.util.List<Solo.ARGOSListing> getListings(java.lang.Integer ptt)
          Get List of ARGOS listings by PTT
static java.util.List<Solo.ARGOSListing> getListingsFromWhoi(java.lang.Integer whoi)
           
 Solo.ARGOSListing.Messages getMessages()
           
 Solo.ARGOSListing.Positions getPositions()
           
 java.lang.String getProfileData()
           
private static java.lang.Integer getPtt(java.lang.Integer whoi)
          Get PTT from WHOI ID
 Solo.ARGOSListing.SurfaceMode getSurfaceMode()
           
private static java.lang.Integer getWhoi(java.lang.Integer ptt)
          Get WHOI ID from PTT
 org.w3c.dom.Element printDriftDataOverviewSection(org.w3c.dom.Element element)
          Print drift data section
private  Form printFormSection(Form form)
          print ARGOS listing form section
 org.w3c.dom.Element printHexDumpOverviewSection(org.w3c.dom.Element element)
          print hex dump section
static org.w3c.dom.Element printListings(java.lang.Integer ptt, org.w3c.dom.Element element)
          Print all listings for PTT
 org.w3c.dom.Element printOverviewSection(org.w3c.dom.Element element)
           
 org.w3c.dom.Element printProfileDataOverviewSection(org.w3c.dom.Element element)
          print profile data section
 org.w3c.dom.Element printSections(org.w3c.dom.Element element)
          Print listing sections
 void save()
          Save this listing to database
 void setDriftData(java.lang.String driftData)
           
 void setEngineeringData(Solo.ARGOSListing.EngineeringData engineeringData)
           
 void setFile(ADBFile file)
           
 void setHexDump(java.lang.String hexDump)
           
 void setId(Solo.ARGOSListing.ID id)
           
 void setMessages(Solo.ARGOSListing.Messages messages)
           
 void setPositions(Solo.ARGOSListing.Positions positions)
           
 void setProfileData(java.lang.String profileData)
           
 void setSurfaceMode(Solo.ARGOSListing.SurfaceMode surfaceMode)
           
static void updateAllArgosListings(java.lang.Boolean debug)
          Update all ARGOS Listings
private static void updateFromDirectory(java.io.File dir)
          Update listings from directory
private static void updateFromDirectory(java.io.File dir, java.lang.Boolean debug)
          Update listings from directory
private static void updateListing(java.io.File f, java.lang.Boolean forceupdate)
          Update ARGOS Listing from file
static void updateListings(java.lang.Integer ptt)
          Update listings for float with corresponding PTT
 
Methods inherited from class edu.whoi.ursa.argoDatabase.servletUtil.page.BasePage.OverviewItem.OverviewPrintFunctions
printDisabledTextArea, printFields, printFields, printWrappedDisabledTextArea
 
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

listingDirectory

private static final java.lang.String listingDirectory

type

private static final java.lang.String type
See Also:
Constant Field Values

id

private Solo.ARGOSListing.ID id

hexDump

private java.lang.String hexDump

engineeringData

private Solo.ARGOSListing.EngineeringData engineeringData

driftData

private java.lang.String driftData

profileData

private java.lang.String profileData

file

private ADBFile file

positions

private Solo.ARGOSListing.Positions positions

messages

private Solo.ARGOSListing.Messages messages

surfaceBeaconMode

private Solo.ARGOSListing.SurfaceMode surfaceBeaconMode

whoi

private java.lang.Integer whoi

wmo

private java.lang.Integer wmo

aoml

private java.lang.Integer aoml

NOTSET

private static final java.lang.String NOTSET

COLOR_CODES

private static final java.lang.String[][] COLOR_CODES
Constructor Detail

Solo.ARGOSListing

public Solo.ARGOSListing()
Method Detail

addLegendSection

public static Form addLegendSection(Form form)
Add legend section to ARGOS listing form

Parameters:
form -
Returns:

getLink

public static java.lang.String getLink(java.lang.Integer whoi)
Get relative href for WHOI

Parameters:
whoi -
Returns:

getListings

private static java.util.List<Solo.ARGOSListing> getListings(java.lang.Integer ptt)
Get List of ARGOS listings by PTT

Parameters:
ptt -
Returns:

getListingsFromWhoi

public static java.util.List<Solo.ARGOSListing> getListingsFromWhoi(java.lang.Integer whoi)
Parameters:
whoi2 -
Returns:

getPtt

private static java.lang.Integer getPtt(java.lang.Integer whoi)
Get PTT from WHOI ID

Parameters:
whoi -
Returns:

getWhoi

private static java.lang.Integer getWhoi(java.lang.Integer ptt)
Get WHOI ID from PTT

Parameters:
ptt -
Returns:

printListings

public static org.w3c.dom.Element printListings(java.lang.Integer ptt,
                                                org.w3c.dom.Element element)
Print all listings for PTT

Parameters:
ptt -
element -
Returns:

updateAllArgosListings

public static void updateAllArgosListings(java.lang.Boolean debug)
Update all ARGOS Listings

Parameters:
debug -

updateFromDirectory

private static void updateFromDirectory(java.io.File dir)
Update listings from directory

Parameters:
dir -

updateFromDirectory

private static void updateFromDirectory(java.io.File dir,
                                        java.lang.Boolean debug)
Update listings from directory

Parameters:
dir -
debug -

updateListing

private static void updateListing(java.io.File f,
                                  java.lang.Boolean forceupdate)
Update ARGOS Listing from file

Parameters:
f -
forceupdate -

updateListings

public static void updateListings(java.lang.Integer ptt)
Update listings for float with corresponding PTT

Parameters:
ptt -

getDriftData

public java.lang.String getDriftData()
Returns:
the driftData

getEngineeringData

public Solo.ARGOSListing.EngineeringData getEngineeringData()
Returns:
the engineeringData

getFile

public ADBFile getFile()
Returns:
the file

getHexDump

public java.lang.String getHexDump()
Returns:
the hexDump

getId

public Solo.ARGOSListing.ID getId()
Returns:
the id

getMessages

public Solo.ARGOSListing.Messages getMessages()
Returns:
the messages

getPositions

public Solo.ARGOSListing.Positions getPositions()
Returns:
the positions

getProfileData

public java.lang.String getProfileData()
Returns:
the profileData

getSurfaceMode

public Solo.ARGOSListing.SurfaceMode getSurfaceMode()
Returns:
the surfaceMode

printDriftDataOverviewSection

public org.w3c.dom.Element printDriftDataOverviewSection(org.w3c.dom.Element element)
Print drift data section

Parameters:
element -
Returns:

printFormSection

private Form printFormSection(Form form)
print ARGOS listing form section

Parameters:
form -
Returns:

printHexDumpOverviewSection

public org.w3c.dom.Element printHexDumpOverviewSection(org.w3c.dom.Element element)
print hex dump section

Parameters:
element -
Returns:

printOverviewSection

public org.w3c.dom.Element printOverviewSection(org.w3c.dom.Element element)
Specified by:
printOverviewSection in class BasePage.OverviewItem.OverviewPrintFunctions

printProfileDataOverviewSection

public org.w3c.dom.Element printProfileDataOverviewSection(org.w3c.dom.Element element)
print profile data section

Parameters:
element -
Returns:

printSections

public org.w3c.dom.Element printSections(org.w3c.dom.Element element)
Print listing sections

Parameters:
element -
Returns:

save

public void save()
Save this listing to database


setDriftData

public void setDriftData(java.lang.String driftData)
Parameters:
driftData - the driftData to set

setEngineeringData

public void setEngineeringData(Solo.ARGOSListing.EngineeringData engineeringData)
Parameters:
engineeringData - the engineeringData to set

setFile

public void setFile(ADBFile file)
Parameters:
file - the file to set

setHexDump

public void setHexDump(java.lang.String hexDump)
Parameters:
hexDump - the hexDump to set

setId

public void setId(Solo.ARGOSListing.ID id)
Parameters:
id - the id to set

setMessages

public void setMessages(Solo.ARGOSListing.Messages messages)
Parameters:
messages - the messages to set

setPositions

public void setPositions(Solo.ARGOSListing.Positions positions)
Parameters:
positions - the positions to set

setProfileData

public void setProfileData(java.lang.String profileData)
Parameters:
profileData - the profileData to set

setSurfaceMode

public void setSurfaceMode(Solo.ARGOSListing.SurfaceMode surfaceMode)
Parameters:
surfaceMode - the surfaceMode to set