public class SuggestionForm
extends org.apache.struts.action.ActionForm
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_BINNING
default to 4x4 binning
|
static float |
DEFAULT_EMA_MAX
default emission angle maximum in degrees
|
static float |
DEFAULT_EMA_MIN
default emission angle minimum in degrees
|
static float |
DEFAULT_INA_MAX
default incidence angle maximum in degrees
|
static float |
DEFAULT_INA_MIN
default incidence angle minimum in degrees
|
static float |
DEFAULT_LS_MAX
default solar longitude maximum in degrees
|
static float |
DEFAULT_LS_MIN
default solar longitude minimum in degrees
|
static float |
DEFAULT_PHA_MAX
default phase angle maximum in degrees
|
static float |
DEFAULT_PHA_MIN
default phase angle minimum in degrees
|
static int |
DEFAULT_PRIORITY
default priority
|
static int |
DEFAULT_SEASON
default season (0 = no particular season)
|
static int |
DEFAULT_THEME
default science theme (0 = none selected)
|
static int |
DEFAULT_ZOOM
default zoom level
|
static float |
EMA_MAX
emission angle maximum
|
static float |
INA_MAX
incidence angle maximum
|
static int |
MAX_CHARACTERS
number of characters allowed in text fields
|
static int |
OBSERVATION_COUNT_MAX
the maximum number of observations
|
static java.util.regex.Pattern |
RE_ALLOWED_TITLE
Allowed characters in title
|
static Suggestion.ScienceTheme[] |
THEMES
array of themes
|
| Constructor and Description |
|---|
SuggestionForm() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAction()
For dispatch actions, get the requested input action
|
int |
getBackground()
Get the background
|
int |
getBinning()
Get the bin mode requested
|
java.util.List<double[]> |
getCoordinates()
Parse the ROI vertices input and return a list of min, max ranges.
|
int |
getCount()
Get the number of observations requested
|
boolean |
getCrism()
True if CRISM coordination is requested
|
java.lang.String |
getCrismNote()
Get the CRISM justification note.
|
float |
getLat()
Get the center latitude
|
int |
getLines()
Get the number of image lines, 0 = use editor default
|
float |
getLon()
Get the center longitude
|
java.util.List<double[]> |
getLsConstraints()
Parse the lsRanges input and return a list of min, max ranges.
|
java.lang.String |
getLsRanges()
For split suggestions, the encoded list of min,max Ls values
|
float |
getMaxEmission()
Get the max emission angle
|
float |
getMaxIncidence()
Get the max incidence angle
|
float |
getMaxLs()
Get the max solar longitude
|
float |
getMaxPhase()
Set the max phase angle
|
float |
getMinEmission()
Get the min emission angle
|
float |
getMinIncidence()
Get the min incidence angle
|
float |
getMinLs()
Get the min solar longitude
|
float |
getMinPhase()
Get the min phase angle
|
java.lang.String |
getNotes()
Get the special notes for this suggestion
|
int |
getPrimaryTheme()
Get the ID of the primary science theme
|
int |
getPriority()
Get the priority
|
java.lang.String |
getRationale()
Get the science rationale
|
java.lang.String |
getRepeatNote() |
java.lang.String |
getResolutionNote()
Get the resolution (binning) justification note.
|
java.lang.String |
getRoi()
Get the ROI string (encoded as lon, lat pairs)
|
int |
getSeason()
Get the season requested (0=none, 1=Northern Spring, etc).
|
int |
getSecondaryTheme()
Get the secondary science theme
|
boolean |
getShowCast()
If true, Cast footprints should be shown
|
boolean |
getShowCRISM()
If true, CRISM footprints should be shown
|
boolean |
getShowCTX()
If true, CTX footprints should be shown
|
boolean |
getShowHiT()
If true, HiRISE target footprints should be shown
|
boolean |
getShowMOC()
If true, MOC footprints should be shown
|
boolean |
getShowRDR()
If true, HiRISE RED RDR footprints should be shown
|
boolean |
getStereo()
True if this is a stereo suggestion
|
boolean |
getStereocap() |
java.lang.String |
getStereoCapId() |
java.lang.String |
getStereoNote()
Get the stereo justification note
|
java.lang.String |
getTitle()
Get the title (description)
|
int |
getZoom()
Get the zoom level
|
boolean |
isAdvanced()
True if this is an advanced suggestion
|
boolean |
isCrism()
True if CRISM coordination is requested
|
boolean |
isSplit()
If true, create multiple suggestions with individual Ls ranges.
|
boolean |
isStereo()
True if this is a stereo suggestion
|
static java.util.List<double[]> |
roi2coordinates(java.lang.String roi)
Parse a ROI string into decimal lat-lon values
|
void |
setAction(java.lang.String action)
For dispatch actions, set the requested input action
|
void |
setBackground(int background)
Set the background to display
|
void |
setBinning(int binning)
Set the bin mode requested
|
void |
setCount(int count)
Set the number of observations requested
|
void |
setCrism(boolean crism)
Set to true for CRISM coordination request
|
void |
setCrismNote(java.lang.String crismNote)
Set the CRISM justification note
|
void |
setLat(java.lang.Double lat)
Set the center latitude
|
void |
setLat(float lat)
Set the center latitude
|
void |
setLines(int lines)
Set the number of image lines
|
void |
setLon(java.lang.Double lon)
Set the center longitude
|
void |
setLon(float lon)
Set the center longitude
|
void |
setLsRanges(java.lang.String lsRanges)
For split suggestions, set the encoded list of min,max Ls values
|
void |
setMaxEmission(float maxEmission)
Set the max emission angle
|
void |
setMaxIncidence(float maxIncidence)
Set the max incidence angle
|
void |
setMaxLs(float maxLs)
Set the max solar longitude
|
void |
setMaxPhase(float maxPhase)
Set the max phase angle
|
void |
setMinEmission(float minEmission)
Set the min emission angle
|
void |
setMinIncidence(float minIncidence)
Set the min incidence angle
|
void |
setMinLs(float minLs)
Set the min solar longitude
|
void |
setMinPhase(float minPhase)
Set the min phase angle
|
void |
setNotes(java.lang.String notes)
Set the special notes for this suggestion
|
void |
setPrimaryTheme(int primaryTheme)
Set the primary science theme
|
void |
setPriority(int priority)
Set the priority.
|
void |
setRationale(java.lang.String rationale)
Set the science rationale
|
void |
setRepeatNote(java.lang.String repeatNote) |
void |
setResolutionNote(java.lang.String resolutionNote)
Set the resolution (binning) justification note.
|
void |
setRoi(java.lang.String roi)
Set the region of interest vertices
|
void |
setSeason(int season)
Set the season requested
|
void |
setSecondaryTheme(int secondaryTheme)
Set the secondary science theme
|
void |
setShowCast(boolean showCast)
Show or hide Cast image footprints
|
void |
setShowCRISM(boolean showCRISM)
Show or hide CRISM image footprints
|
void |
setShowCTX(boolean showCTX)
Show or hide CTX image footprints
|
void |
setShowHiT(boolean showHiT)
Show or hide HiRISE target footprints
|
void |
setShowMOC(boolean showMOC)
Show or hide MOC image footprints
|
void |
setShowRDR(boolean showRDR)
Show or hide HiRISE RED RDR footprints
|
void |
setSplit(boolean split)
Set to true to create multiple suggestions with individual Ls ranges.
|
void |
setStereo(boolean stereo)
Set to true for a stereo suggestion
|
void |
setStereocap(boolean stereocap) |
void |
setStereoCapId(java.lang.String stereoCapId) |
void |
setStereoNote(java.lang.String stereoNote)
Set the stereo justification note
|
void |
setTitle(java.lang.String title)
Set the title (description)
|
void |
setZoom(int zoom)
Set the zoom level
|
org.apache.struts.action.ActionErrors |
validate(org.apache.struts.action.ActionMapping map,
javax.servlet.http.HttpServletRequest req) |
public static final Suggestion.ScienceTheme[] THEMES
public static final java.util.regex.Pattern RE_ALLOWED_TITLE
public static final int DEFAULT_BINNING
public static final int DEFAULT_ZOOM
public static final int DEFAULT_PRIORITY
public static final int DEFAULT_THEME
public static final int DEFAULT_SEASON
public static final float DEFAULT_LS_MIN
public static final float DEFAULT_LS_MAX
public static final float DEFAULT_EMA_MIN
public static final float DEFAULT_EMA_MAX
public static final float DEFAULT_INA_MIN
public static final float DEFAULT_INA_MAX
public static final float DEFAULT_PHA_MIN
public static final float DEFAULT_PHA_MAX
public static final int OBSERVATION_COUNT_MAX
public static final float INA_MAX
public static final float EMA_MAX
public static final int MAX_CHARACTERS
public java.lang.String getAction()
public void setAction(java.lang.String action)
action - Corresponds to the state of the processpublic void setStereoCapId(java.lang.String stereoCapId)
public java.lang.String getStereoCapId()
public void setStereocap(boolean stereocap)
public boolean getStereocap()
public java.util.List<double[]> getLsConstraints()
throws java.text.ParseException
java.text.ParseException - Invalid inputpublic java.util.List<double[]> getCoordinates()
public static java.util.List<double[]> roi2coordinates(java.lang.String roi)
throws java.text.ParseException
roi - Region of Interest as CSV stringjava.text.ParseException - invalid coordinate(s)public java.lang.String getRoi()
public void setRoi(java.lang.String roi)
roi - encoded lon-lat coordinatespublic int getZoom()
public void setZoom(int zoom)
zoom - google map zoom levelpublic int getLines()
public void setLines(int lines)
lines - number of image linespublic float getLat()
public float getLon()
public void setLat(float lat)
lat - degrees latitudepublic void setLon(float lon)
lon - degrees longitudepublic void setLat(java.lang.Double lat)
lat - degrees latitudepublic void setLon(java.lang.Double lon)
lon - degrees longitudepublic int getBinning()
public void setBinning(int binning)
binning - 1,2, or 4public int getCount()
public void setCount(int count)
count - number of observationspublic java.lang.String getCrismNote()
public void setCrismNote(java.lang.String crismNote)
crismNote - justification textpublic float getMaxEmission()
public void setMaxEmission(float maxEmission)
maxEmission - degreespublic float getMaxIncidence()
public void setMaxIncidence(float maxIncidence)
maxIncidence - degreespublic float getMaxLs()
public void setMaxLs(float maxLs)
maxLs - degreespublic float getMaxPhase()
public void setMaxPhase(float maxPhase)
maxPhase - degreespublic float getMinEmission()
public void setMinEmission(float minEmission)
minEmission - degreespublic float getMinIncidence()
public void setMinIncidence(float minIncidence)
minIncidence - degreespublic float getMinLs()
public void setMinLs(float minLs)
minLs - degreespublic float getMinPhase()
public void setMinPhase(float minPhase)
minPhase - degreespublic java.lang.String getNotes()
public void setNotes(java.lang.String notes)
notes - textpublic int getPrimaryTheme()
public void setPrimaryTheme(int primaryTheme)
primaryTheme - science theme IDpublic int getPriority()
public void setPriority(int priority)
priority - valuepublic java.lang.String getRationale()
public void setRationale(java.lang.String rationale)
rationale - textpublic java.lang.String getResolutionNote()
public void setResolutionNote(java.lang.String resolutionNote)
resolutionNote - textpublic int getSecondaryTheme()
public void setSecondaryTheme(int secondaryTheme)
secondaryTheme - science theme IDpublic boolean isAdvanced()
public boolean getStereo()
public boolean isStereo()
public void setStereo(boolean stereo)
stereo - true for stereopublic java.lang.String getStereoNote()
public void setStereoNote(java.lang.String stereoNote)
stereoNote - textpublic java.lang.String getTitle()
public void setTitle(java.lang.String title)
title - short description of suggestionpublic boolean getCrism()
public boolean isCrism()
public void setCrism(boolean crism)
crism - true for CRISM coordinationpublic int getSeason()
public void setSeason(int season)
season - 0=none, 1=Northern Spring, etcpublic java.lang.String getLsRanges()
public void setLsRanges(java.lang.String lsRanges)
lsRanges - encoded list of min,max valuespublic boolean isSplit()
public void setSplit(boolean split)
split - true to use multiple Ls rangespublic void setRepeatNote(java.lang.String repeatNote)
repeatNote - the repeatNote to setpublic java.lang.String getRepeatNote()
public int getBackground()
public void setBackground(int background)
background - Background index valuepublic boolean getShowHiT()
public boolean getShowRDR()
public boolean getShowCTX()
public boolean getShowCRISM()
public boolean getShowMOC()
public boolean getShowCast()
public void setShowHiT(boolean showHiT)
showHiT - show = truepublic void setShowRDR(boolean showRDR)
showRDR - show = truepublic void setShowCTX(boolean showCTX)
showCTX - show = truepublic void setShowCRISM(boolean showCRISM)
showCRISM - show = truepublic void setShowMOC(boolean showMOC)
showMOC - show = truepublic void setShowCast(boolean showCast)
showCast - show = truepublic org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping map,
javax.servlet.http.HttpServletRequest req)
validate in class org.apache.struts.action.ActionFormCopyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona