edu.whoi.ursa.argoDatabase.entity
Class Solo2.MissionParameters

java.lang.Object
  extended by edu.whoi.ursa.argoDatabase.servletUtil.page.BasePage.OverviewItem.OverviewPrintFunctions
      extended by edu.whoi.ursa.argoDatabase.entity.Solo2.MissionParameters
Direct Known Subclasses:
Solo2.QueuedMissionParameters, Solo2.ReportedMissionParameters, Solo2.SavedMissionParameters
Enclosing class:
Solo2

@MappedSuperclass
public abstract static class Solo2.MissionParameters
extends BasePage.OverviewItem.OverviewPrintFunctions

Solo II Mission Parameters. This abstract class defines the mission parameters for the Solo II. Mission Parameters are grouped by upload command and implement the _Parameter interface.

Author:
Alexander K. Ekholm

Nested Class Summary
private static interface Solo2.MissionParameters._Parameters
          Parameters Interface.
static class Solo2.MissionParameters.AbortParameters
          Solo-II Abort Parameters.
static class Solo2.MissionParameters.AirVentParameters
          Solo-II Air Vent Parameters.
static class Solo2.MissionParameters.AscentDescentTimingParameters
           
static class Solo2.MissionParameters.CTDParameters
           
static class Solo2.MissionParameters.DivesTargetDepthsDescentPumpTimeParameters
           
static class Solo2.MissionParameters.DriftParameters
           
static class Solo2.MissionParameters.Exceptions
           
static class Solo2.MissionParameters.HydraulicPumpParameters
           
static class Solo2.MissionParameters.InformationRequest
           
static class Solo2.MissionParameters.SaveParameters
           
static class Solo2.MissionParameters.SeekParameters
           
static class Solo2.MissionParameters.SleepParameters
           
static class Solo2.MissionParameters.SurfaceCommunicationParameters
           
static class Solo2.MissionParameters.SurfaceDriftParameters
           
 
Field Summary
protected  Solo2.MissionParameters.AbortParameters abortParameters
           
protected  Solo2.MissionParameters.AirVentParameters airVentParameters
           
protected  Solo2.MissionParameters.AscentDescentTimingParameters ascentDescentTimingParameters
           
protected  java.lang.String command
           
protected  Solo2.MissionParameters.CTDParameters ctdParameters
           
protected  Solo2.MissionParameters.DivesTargetDepthsDescentPumpTimeParameters divesTargetDepthsDescentPumpTimeParameters
           
protected  Solo2.MissionParameters.DriftParameters driftParameters
           
protected  Solo2.MissionParameters.Exceptions exceptions
           
protected  Solo2.MissionParameters.HydraulicPumpParameters hydraulicPumpParameters
           
protected  Solo2.MissionParameters.InformationRequest informationRequest
           
protected static java.lang.String notset
           
protected static java.lang.String[][] sections
           
protected  Solo2.MissionParameters.SeekParameters seekParameters
           
protected  Solo2.MissionParameters.SleepParameters sleepParameters
           
protected  Solo2.MissionParameters.SurfaceCommunicationParameters surfaceCommunicationParameters
           
protected  Solo2.MissionParameters.SurfaceDriftParameters surfaceDriftParameters
           
 
Constructor Summary
Solo2.MissionParameters()
           
Solo2.MissionParameters(java.util.Map<java.lang.String,java.lang.String[]> parameterMap)
           
 
Method Summary
private static java.lang.String _assebleCommand(java.lang.Character c, java.lang.Integer... values)
           
private static void _checkValues(java.lang.String name, java.lang.String[] parameters, java.lang.String[] names, java.lang.Integer[] values, java.lang.Integer[] maximums, java.lang.Integer[] minimums)
           
private static
<Parameter extends Solo2.MissionParameters._Parameters>
Form
_print3PhaseFormSection(Form form, Parameter parameter)
           
protected static
<Parameter extends Solo2.MissionParameters._Parameters>
Form
_printConfirmationFormSection(Form form, Parameter parameter)
           
private static
<Parameter extends Solo2.MissionParameters._Parameters>
Form
_printFormSection(Form form, Parameter parameter)
           
private static Form _printMissionPhases(Form form)
           
protected  Solo2.MissionParameters _setMissionParametersFromMap(java.util.Map<java.lang.String,java.lang.Integer> parameterMap, java.lang.Boolean confirm)
          Set mission parameters from map
static Form addCustomCommandUploadFormSection(Form form)
          Add custom upload command.
protected  java.lang.String assembleCommand()
           
 void checkValues()
           
 Solo2.MissionParameters.AbortParameters getAbortParameters()
           
 Solo2.MissionParameters.AirVentParameters getAirVentParameters()
           
 Solo2.MissionParameters.AscentDescentTimingParameters getAscentDescentTimingParameters()
           
 java.lang.String getCommand()
           
 Solo2.MissionParameters.CTDParameters getCtdParameters()
           
 Solo2.MissionParameters.DivesTargetDepthsDescentPumpTimeParameters getDivesTargetDepthsDescentPumpTimeParameters()
           
 Solo2.MissionParameters.DriftParameters getDriftParameters()
           
 Solo2.MissionParameters.Exceptions getExceptions()
           
 Solo2.MissionParameters.HydraulicPumpParameters getHydraulicPumpParameters()
           
 Solo2.MissionParameters.InformationRequest getInformationRequest()
           
protected static java.lang.String getSectionColor(java.lang.Character c)
           
 Solo2.MissionParameters.SeekParameters getSeekParameters()
           
 Solo2.MissionParameters.SleepParameters getSleepParameters()
           
 Solo2.MissionParameters.SurfaceCommunicationParameters getSurfaceCommunicationParameters()
           
 Solo2.MissionParameters.SurfaceDriftParameters getSurfaceDriftParameters()
           
static Form printBlankForm(org.w3c.dom.Element element)
           
 Form printConfirmationForm(org.w3c.dom.Element element, java.lang.String header)
           
protected  Form printUploadCommand(Form form)
           
static org.w3c.dom.Element printUploadMissionParameterForm(org.w3c.dom.Element element, java.lang.Integer whoi)
           
protected  Form printUploadTimeSection(Form form)
           
 Form printValuesToForm(org.w3c.dom.Element element)
           
 void save()
           
 void setAbortParameters(Solo2.MissionParameters.AbortParameters abortParameters)
           
 void setAirVentParameters(Solo2.MissionParameters.AirVentParameters airVentParameters)
           
 void setAscentDescentTimingParameters(Solo2.MissionParameters.AscentDescentTimingParameters ascentDescentTimingParameters)
          6
 void setCommand(java.lang.String command)
           
 void setCtdParameters(Solo2.MissionParameters.CTDParameters ctdParameters)
           
 void setDivesTargetDepthsDescentPumpTimeParameters(Solo2.MissionParameters.DivesTargetDepthsDescentPumpTimeParameters divesTargetDepthsDescentPumpTimeParameters)
           
 void setDriftParameters(Solo2.MissionParameters.DriftParameters driftParameters)
           
 void setExceptions(Solo2.MissionParameters.Exceptions exceptions)
           
 void setHydraulicPumpParameters(Solo2.MissionParameters.HydraulicPumpParameters hydraulicPumpParameters)
           
 void setInformationRequest(Solo2.MissionParameters.InformationRequest informationRequest)
           
 void setSeekParameters(Solo2.MissionParameters.SeekParameters seekParameters)
           
 void setSleepParameters(Solo2.MissionParameters.SleepParameters sleepParameters)
           
 void setSurfaceCommunicationParameters(Solo2.MissionParameters.SurfaceCommunicationParameters surfaceCommunicationParameters)
           
 void setSurfaceDriftParameters(Solo2.MissionParameters.SurfaceDriftParameters surfaceDriftParameters)
           
 java.lang.String toString()
           
 
Methods inherited from class edu.whoi.ursa.argoDatabase.servletUtil.page.BasePage.OverviewItem.OverviewPrintFunctions
printDisabledTextArea, printFields, printFields, printOverviewSection, printWrappedDisabledTextArea
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

notset

protected static final java.lang.String notset
See Also:
Constant Field Values

sections

protected static final java.lang.String[][] sections

informationRequest

protected Solo2.MissionParameters.InformationRequest informationRequest

exceptions

protected Solo2.MissionParameters.Exceptions exceptions

airVentParameters

protected Solo2.MissionParameters.AirVentParameters airVentParameters

ctdParameters

protected Solo2.MissionParameters.CTDParameters ctdParameters

abortParameters

protected Solo2.MissionParameters.AbortParameters abortParameters

ascentDescentTimingParameters

protected Solo2.MissionParameters.AscentDescentTimingParameters ascentDescentTimingParameters

divesTargetDepthsDescentPumpTimeParameters

protected Solo2.MissionParameters.DivesTargetDepthsDescentPumpTimeParameters divesTargetDepthsDescentPumpTimeParameters

driftParameters

protected Solo2.MissionParameters.DriftParameters driftParameters

hydraulicPumpParameters

protected Solo2.MissionParameters.HydraulicPumpParameters hydraulicPumpParameters

seekParameters

protected Solo2.MissionParameters.SeekParameters seekParameters

sleepParameters

protected Solo2.MissionParameters.SleepParameters sleepParameters

surfaceCommunicationParameters

protected Solo2.MissionParameters.SurfaceCommunicationParameters surfaceCommunicationParameters

surfaceDriftParameters

protected Solo2.MissionParameters.SurfaceDriftParameters surfaceDriftParameters

command

protected java.lang.String command
Constructor Detail

Solo2.MissionParameters

public Solo2.MissionParameters()

Solo2.MissionParameters

public Solo2.MissionParameters(java.util.Map<java.lang.String,java.lang.String[]> parameterMap)
Method Detail

addCustomCommandUploadFormSection

public static Form addCustomCommandUploadFormSection(Form form)
Add custom upload command.

Parameters:
form -
Returns:
form

_assebleCommand

private static java.lang.String _assebleCommand(java.lang.Character c,
                                                java.lang.Integer... values)

_checkValues

private static void _checkValues(java.lang.String name,
                                 java.lang.String[] parameters,
                                 java.lang.String[] names,
                                 java.lang.Integer[] values,
                                 java.lang.Integer[] maximums,
                                 java.lang.Integer[] minimums)
                          throws ADBException
Throws:
ADBException

_print3PhaseFormSection

private static <Parameter extends Solo2.MissionParameters._Parameters> Form _print3PhaseFormSection(Form form,
                                                                                                    Parameter parameter)

_printConfirmationFormSection

protected static <Parameter extends Solo2.MissionParameters._Parameters> Form _printConfirmationFormSection(Form form,
                                                                                                            Parameter parameter)

_printFormSection

private static <Parameter extends Solo2.MissionParameters._Parameters> Form _printFormSection(Form form,
                                                                                              Parameter parameter)

_printMissionPhases

private static Form _printMissionPhases(Form form)

getSectionColor

protected static java.lang.String getSectionColor(java.lang.Character c)

printBlankForm

public static Form printBlankForm(org.w3c.dom.Element element)

printUploadMissionParameterForm

public static org.w3c.dom.Element printUploadMissionParameterForm(org.w3c.dom.Element element,
                                                                  java.lang.Integer whoi)

_setMissionParametersFromMap

protected Solo2.MissionParameters _setMissionParametersFromMap(java.util.Map<java.lang.String,java.lang.Integer> parameterMap,
                                                               java.lang.Boolean confirm)
Set mission parameters from map

Parameters:
parameterMap -

assembleCommand

protected java.lang.String assembleCommand()

checkValues

public void checkValues()
                 throws ADBException
Throws:
ADBException

getAbortParameters

public Solo2.MissionParameters.AbortParameters getAbortParameters()
Returns:
the abortParameters

getAirVentParameters

public Solo2.MissionParameters.AirVentParameters getAirVentParameters()
Returns:
the airVentParameters

getAscentDescentTimingParameters

public Solo2.MissionParameters.AscentDescentTimingParameters getAscentDescentTimingParameters()
Returns:
the ascentDescentTimingParameters

getCommand

public java.lang.String getCommand()
Returns:
the command

getCtdParameters

public Solo2.MissionParameters.CTDParameters getCtdParameters()
Returns:
the ctdParameters

getDivesTargetDepthsDescentPumpTimeParameters

public Solo2.MissionParameters.DivesTargetDepthsDescentPumpTimeParameters getDivesTargetDepthsDescentPumpTimeParameters()
Returns:
the divesTargetDepthsDescentPumpTimeParameters

getDriftParameters

public Solo2.MissionParameters.DriftParameters getDriftParameters()
Returns:
the driftParameters

getExceptions

public Solo2.MissionParameters.Exceptions getExceptions()
Returns:
the exceptions

getHydraulicPumpParameters

public Solo2.MissionParameters.HydraulicPumpParameters getHydraulicPumpParameters()
Returns:
the hydraulicPumpParameters

getInformationRequest

public Solo2.MissionParameters.InformationRequest getInformationRequest()
Returns:
the informationRequest

getSeekParameters

public Solo2.MissionParameters.SeekParameters getSeekParameters()
Returns:
the seekParameters

getSleepParameters

public Solo2.MissionParameters.SleepParameters getSleepParameters()
Returns:
the sleepParameters

getSurfaceCommunicationParameters

public Solo2.MissionParameters.SurfaceCommunicationParameters getSurfaceCommunicationParameters()
Returns:
the surfaceCommunicationParameters

getSurfaceDriftParameters

public Solo2.MissionParameters.SurfaceDriftParameters getSurfaceDriftParameters()
Returns:
the surfaceDriftParameters

printConfirmationForm

public Form printConfirmationForm(org.w3c.dom.Element element,
                                  java.lang.String header)

printUploadCommand

protected Form printUploadCommand(Form form)

printUploadTimeSection

protected Form printUploadTimeSection(Form form)

printValuesToForm

public Form printValuesToForm(org.w3c.dom.Element element)

save

public void save()

setAbortParameters

public void setAbortParameters(Solo2.MissionParameters.AbortParameters abortParameters)
Parameters:
abortParameters - the abortParameters to set

setAirVentParameters

public void setAirVentParameters(Solo2.MissionParameters.AirVentParameters airVentParameters)
Parameters:
airVentParameters - the airVentParameters to set

setAscentDescentTimingParameters

public void setAscentDescentTimingParameters(Solo2.MissionParameters.AscentDescentTimingParameters ascentDescentTimingParameters)
6

Parameters:
ascentDescentTimingParameters - the ascentDescentTimingParameters to set

setCommand

public void setCommand(java.lang.String command)
Parameters:
command - the command to set

setCtdParameters

public void setCtdParameters(Solo2.MissionParameters.CTDParameters ctdParameters)
Parameters:
ctdParameters - the ctdParameters to set

setDivesTargetDepthsDescentPumpTimeParameters

public void setDivesTargetDepthsDescentPumpTimeParameters(Solo2.MissionParameters.DivesTargetDepthsDescentPumpTimeParameters divesTargetDepthsDescentPumpTimeParameters)
Parameters:
divesTargetDepthsDescentPumpTimeParameters - the divesTargetDepthsDescentPumpTimeParameters to set

setDriftParameters

public void setDriftParameters(Solo2.MissionParameters.DriftParameters driftParameters)
Parameters:
driftParameters - the driftParameters to set

setExceptions

public void setExceptions(Solo2.MissionParameters.Exceptions exceptions)
Parameters:
exceptions - the exceptions to set

setHydraulicPumpParameters

public void setHydraulicPumpParameters(Solo2.MissionParameters.HydraulicPumpParameters hydraulicPumpParameters)
Parameters:
hydraulicPumpParameters - the hydraulicPumpParameters to set

setInformationRequest

public void setInformationRequest(Solo2.MissionParameters.InformationRequest informationRequest)
Parameters:
informationRequest - the informationRequest to set

setSeekParameters

public void setSeekParameters(Solo2.MissionParameters.SeekParameters seekParameters)
Parameters:
seekParameters - the seekParameters to set

setSleepParameters

public void setSleepParameters(Solo2.MissionParameters.SleepParameters sleepParameters)
Parameters:
sleepParameters - the sleepParameters to set

setSurfaceCommunicationParameters

public void setSurfaceCommunicationParameters(Solo2.MissionParameters.SurfaceCommunicationParameters surfaceCommunicationParameters)
Parameters:
surfaceCommunicationParameters - the surfaceCommunicationParameters to set

setSurfaceDriftParameters

public void setSurfaceDriftParameters(Solo2.MissionParameters.SurfaceDriftParameters surfaceDriftParameters)
Parameters:
surfaceDriftParameters - the surfaceDriftParameters to set

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object