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

java.lang.Object
  extended by edu.whoi.ursa.argoDatabase.entity.Solo.IridiumListing
Enclosing class:
Solo

@Entity(name="Solo_Listing_Iridium")
public static class Solo.IridiumListing
extends java.lang.Object

Solo Iridium Listing

Author:
Alexander K. Ekholm

Nested Class Summary
static class Solo.IridiumListing.EngineeringData
          Solo Iridium listing engineering data
static class Solo.IridiumListing.ID
          Solo Iridium Listing unique identifier
static class Solo.IridiumListing.SummaryTable
          Solo ARGOS Listing summary table
 
Field Summary
private  Identifiers.ArgoID argoId
           
private  java.lang.String beaconMode
           
private static java.lang.String[][] colorCodes
           
private  java.lang.String commandUploadAcknowledgement
           
private  java.lang.String driftData
           
private  Solo.IridiumListing.EngineeringData engineeringData
           
private  java.lang.String engineeringLoggerData
           
private  ADBFile file
           
private  Solo.IridiumListing.ID id
           
private static java.lang.String listingDirectory
           
private  java.lang.String profileData
           
private static java.lang.String type
           
static Updator updator
           
 
Constructor Summary
Solo.IridiumListing()
           
 
Method Summary
static Form addLegendSection(Form form)
          Add legend section to Solo Iridium Listing form
 Identifiers.ArgoID getArgoId()
           
 java.lang.String getBeaconMode()
           
 java.lang.String getCommandUploadAcknowledgement()
           
 java.lang.String getDriftData()
           
 Solo.IridiumListing.EngineeringData getEngineeringData()
           
 java.lang.String getEngineeringLoggerData()
           
 ADBFile getFile()
           
 Solo.IridiumListing.ID getId()
           
static java.lang.Long getIMEI(java.lang.Integer whoi)
          Get PTT from WHOI ID
static java.lang.String getLink(java.lang.Integer whoi)
          Get relative href for WHOI
private static java.util.List<Solo.IridiumListing> getListings(java.lang.Long imei)
           
 java.lang.String getProfileData()
           
private static java.util.Calendar getTimestampFromFilename(java.lang.String filename)
          Get timestamp from filename.
private static java.lang.Integer getWHOI(java.lang.Long imei)
          get WHOI from IMEI
private  Form printFormSection(Form form)
          Print Iridium Listing section to form
static org.w3c.dom.Element printListings(java.lang.Long imei, org.w3c.dom.Element element)
          Print Iridium listings for IMEI
 void save()
          Save this listing to database
 void setArgoId(Identifiers.ArgoID argoId)
           
 void setBeaconMode(java.lang.String beaconMode)
           
 void setCommandUploadAcknowledgement(java.lang.String commandUploadAcknowledgement)
           
 void setDriftData(java.lang.String driftData)
           
 void setEngineeringData(Solo.IridiumListing.EngineeringData engineeringData)
           
 void setEngineeringLoggerData(java.lang.String engineeringLoggerData)
           
private  void setFields(java.lang.String section, java.lang.Integer type)
          Set Solo Iridium listing fields from listing entry
 void setFile(ADBFile file)
           
 void setId(Solo.IridiumListing.ID id)
           
 void setProfileData(java.lang.String profileData)
           
static void updateAllIridiumListings(java.lang.Boolean debug)
          Update all Iridium listings
static void updateFromDirectory(java.io.File dir)
          update listings for directory
static void updateFromDirectory(java.io.File dir, java.lang.Boolean debug)
          Update Listings for directory
private static void updateListing(java.io.File f, java.lang.Long imei, java.lang.Boolean forceupdate)
          Update Solo Iridium listing from File f
static void updateListings(java.lang.Long imei)
          Update listings for IMEI
static void updateListings(java.lang.Long imei, java.lang.Boolean debug)
          Update listings for IMEI
 
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

colorCodes

private static java.lang.String[][] colorCodes

listingDirectory

private static final java.lang.String listingDirectory

type

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

id

private Solo.IridiumListing.ID id

argoId

private Identifiers.ArgoID argoId

engineeringData

private Solo.IridiumListing.EngineeringData engineeringData

profileData

private java.lang.String profileData

driftData

private java.lang.String driftData

engineeringLoggerData

private java.lang.String engineeringLoggerData

beaconMode

private java.lang.String beaconMode

commandUploadAcknowledgement

private java.lang.String commandUploadAcknowledgement

file

private ADBFile file
Constructor Detail

Solo.IridiumListing

public Solo.IridiumListing()
Method Detail

addLegendSection

public static Form addLegendSection(Form form)
Add legend section to Solo Iridium Listing form

Parameters:
form -
Returns:

getIMEI

public static java.lang.Long getIMEI(java.lang.Integer whoi)
Get PTT from WHOI ID

Parameters:
whoi -
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.IridiumListing> getListings(java.lang.Long imei)

getTimestampFromFilename

private static java.util.Calendar getTimestampFromFilename(java.lang.String filename)
Get timestamp from filename. Expects one of the following formats: XXXX_YYDDMMssssss_inter.lis XXXX_YYDDMM_ssssss_inter.lis

Parameters:
filename -
Returns:

getWHOI

private static java.lang.Integer getWHOI(java.lang.Long imei)
get WHOI from IMEI

Parameters:
imei -
Returns:

printListings

public static org.w3c.dom.Element printListings(java.lang.Long imei,
                                                org.w3c.dom.Element element)
Print Iridium listings for IMEI

Parameters:
imei -
element -
Returns:

updateAllIridiumListings

public static void updateAllIridiumListings(java.lang.Boolean debug)
Update all Iridium listings

Parameters:
debug -

updateFromDirectory

public static void updateFromDirectory(java.io.File dir)
update listings for directory

Parameters:
dir -

updateFromDirectory

public static void updateFromDirectory(java.io.File dir,
                                       java.lang.Boolean debug)
Update Listings for directory

Parameters:
dir -
debug -

updateListing

private static void updateListing(java.io.File f,
                                  java.lang.Long imei,
                                  java.lang.Boolean forceupdate)
Update Solo Iridium listing from File f

Parameters:
f -
imei -
forceupdate -

updateListings

public static void updateListings(java.lang.Long imei)
Update listings for IMEI

Parameters:
imei -

updateListings

public static void updateListings(java.lang.Long imei,
                                  java.lang.Boolean debug)
Update listings for IMEI

Parameters:
imei -

getArgoId

public Identifiers.ArgoID getArgoId()
Returns:
the argoId

getBeaconMode

public java.lang.String getBeaconMode()
Returns:
the beaconMode

getCommandUploadAcknowledgement

public java.lang.String getCommandUploadAcknowledgement()
Returns:
the commandUploadAcknowledgement

getDriftData

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

getEngineeringData

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

getEngineeringLoggerData

public java.lang.String getEngineeringLoggerData()
Returns:
the engineeringLoggerData

getFile

public ADBFile getFile()
Returns:
the file

getId

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

getProfileData

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

printFormSection

private Form printFormSection(Form form)
Print Iridium Listing section to form

Parameters:
form -
Returns:

save

public void save()
Save this listing to database


setArgoId

public void setArgoId(Identifiers.ArgoID argoId)
Parameters:
argoId - the argoId to set

setBeaconMode

public void setBeaconMode(java.lang.String beaconMode)
Parameters:
beaconMode - the beaconMode to set

setCommandUploadAcknowledgement

public void setCommandUploadAcknowledgement(java.lang.String commandUploadAcknowledgement)
Parameters:
commandUploadAcknowledgement - the commandUploadAcknowledgement to set

setDriftData

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

setEngineeringData

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

setEngineeringLoggerData

public void setEngineeringLoggerData(java.lang.String engineeringLoggerData)
Parameters:
engineeringLoggerData - the engineeringLoggerData to set

setFields

private void setFields(java.lang.String section,
                       java.lang.Integer type)
Set Solo Iridium listing fields from listing entry

Parameters:
section -
type -

setFile

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

setId

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

setProfileData

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