public class OrbitCycleForm extends TimeRangeForm
Modifier and Type | Class and Description |
---|---|
static class |
OrbitCycleForm.RangeUnit
Range choices
|
Modifier and Type | Field and Description |
---|---|
protected OrbitCycleForm.RangeUnit |
by
Which range unit to use
|
protected float |
cenLat
Center latitude ('ocentric)
|
protected float |
cenLon
Center longitude (east)
|
protected int |
maxCycle
Ending cycle ID
|
protected float |
maxLat
Maximum latitude ('ocentric)
|
protected float |
maxLon
Maximum longitude (east)
|
protected float |
maxLs
Maximum solar longitude
|
protected int |
maxMy
Maximum Mars year
|
protected int |
maxOrbit
Maximum orbit number
|
protected int |
minCycle
Starting cycle ID
|
protected float |
minLat
Minimum latitude ('ocentric)
|
protected float |
minLon
Minimum longitude (east)
|
protected float |
minLs
Minimum solar longitude
|
protected int |
minMy
Minimum Mars year
|
protected int |
minOrbit
Minimum orbit number
|
protected float |
range
Range from center (degrees)
|
protected MartianSeason |
season
season name, corresponding to one of the keys in the seasons enum
|
protected java.lang.String[] |
target
Target array
|
ID, maxDate, minDate, plus, TIME_FORMATS, timeFormatters, timeUnits, unit
EXPORT_MAX_ROWS
Constructor and Description |
---|
OrbitCycleForm() |
Modifier and Type | Method and Description |
---|---|
protected <T> void |
checkArray(T t,
T[] array,
java.lang.String key,
org.apache.struts.action.ActionErrors errors,
java.lang.String msg)
Check that an item is in an array, which may be unsorted.
|
java.lang.String |
getBy()
Get the value of by (units of range, either km or deg, null if not set)
|
float |
getCenLat()
Get the center latitude
|
float |
getCenLon()
Get the center longitude
|
MartianSeason |
getMartianSeason()
Get the season instance, if a season was requested, otherwise null
|
int |
getMaxCycle()
Return the maximum cycle (or zero, if unset)
|
java.lang.String |
getMaxDate()
Get the max date, or null if no max date has been input
|
float |
getMaxLat()
Get the maximum latitude
|
float |
getMaxLon()
Get the maximum longitude
|
float |
getMaxLs()
Get the maximum solar longitude
|
int |
getMaxMy()
Get the maximum Mars year
|
int |
getMaxOrbit()
Get the maximum orbit number
|
int |
getMinCycle()
Return the minimum cycle (or zero, if unset)
|
java.lang.String |
getMinDate()
Get the start date, or null if no min date has been input
|
float |
getMinLat()
Get the minimum latitude
|
float |
getMinLon()
Get the minimum longitude
|
float |
getMinLs()
Get the minimum solar longitude
|
int |
getMinMy()
Get the minimum Mars year
|
int |
getMinOrbit()
Get the minimum orbit number
|
int |
getNextMaxCycle()
Get the maximum cycle number in the range following this one
|
int |
getNextMaxOrbit()
Get the maximum orbit number in the range following this one
|
int |
getNextMinCycle()
Get the minimum cycle number in the range following this one
|
int |
getNextMinOrbit()
Get the minimum orbit number in the range following this one
|
int |
getPrevMaxCycle()
Get the maximum cycle number in the range preceding this one
|
int |
getPrevMaxOrbit()
Get the maximum orbit number in the range preceding this one
|
int |
getPrevMinCycle()
Get the minimum cycle number in the range preceding this one
|
int |
getPrevMinOrbit()
Get the minimum orbit number in the range preceding this one
|
float |
getRange()
Get the range in KM (zero for no range)
|
java.lang.String |
getSeason()
Get the input season value
|
MartianSeason[] |
getSeasons()
Get the array of possible season names.
|
java.lang.String[] |
getTarget()
Get the target names
|
boolean |
isMartian()
Returns true if Mars is one of the targets input to the form
|
void |
setBy(java.lang.String by)
Set the value of by (units of range, either km or deg)
|
void |
setCenLat(float cenLat)
Set the center latitude
|
void |
setCenLon(float cenLon)
Set the center longitude
|
void |
setMaxCycle(int maxCycle)
Set the maximum cycle
|
void |
setMaxLat(float maxLat)
Set the maximum latitude
|
void |
setMaxLon(float maxLon)
Set the maximum longitude
|
void |
setMaxLs(float maxLs)
Set the maximum solar longitude
|
void |
setMaxMy(int maxMy)
Set the maximum Mars year
|
void |
setMaxOrbit(int maxOrbit)
Set the maximum orbit number
|
void |
setMinCycle(int minCycle)
Set the minimum cycle
|
void |
setMinLat(float minLat)
Set the minimum latitude
|
void |
setMinLon(float minLon)
Get the minimum longitude
|
void |
setMinLs(float minLs)
Set the minimum solar longitude
|
void |
setMinMy(int minMy)
Set the minimum Mars year
|
void |
setMinOrbit(int minOrbit)
Set the minimum orbit number
|
void |
setRange(float range)
Set the range in KM
|
void |
setSeason(java.lang.String season)
Set the season
|
void |
setTarget(java.lang.String... target)
Set the target names
|
org.apache.struts.action.ActionErrors |
validate(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest req)
Validate the form input
|
getPlus, getTimeRange, getTimeUnit, getTimeUnits, parseDate, setMaxDate, setMinDate, setPlus, setTimeRange, setTimeUnit
getDir, getPage, getSize, getSort, isAscending, reset, setDir, setPage, setSize, setSort
protected MartianSeason season
protected float minLs
protected float maxLs
protected int minMy
protected int maxMy
protected int minOrbit
protected int maxOrbit
protected int minCycle
protected int maxCycle
protected float minLat
protected float maxLat
protected float minLon
protected float maxLon
protected float cenLat
protected float cenLon
protected float range
protected OrbitCycleForm.RangeUnit by
protected java.lang.String[] target
public boolean isMartian()
public MartianSeason[] getSeasons()
public java.lang.String getSeason()
public void setSeason(java.lang.String season)
season
- MartianSeason
public MartianSeason getMartianSeason()
public void setTarget(java.lang.String... target)
target
- name of targetspublic java.lang.String[] getTarget()
public java.lang.String getBy()
public void setBy(java.lang.String by)
by
- search bypublic int getMinOrbit()
public int getMaxOrbit()
public void setMinOrbit(int minOrbit)
minOrbit
- minimum orbit numberpublic void setMaxOrbit(int maxOrbit)
maxOrbit
- maximum orbit numberpublic int getMinCycle()
public void setMinCycle(int minCycle)
minCycle
- cycle IDpublic int getMaxCycle()
public void setMaxCycle(int maxCycle)
maxCycle
- cycle IDpublic float getMinLs()
public void setMinLs(float minLs)
minLs
- degrees solar longitudepublic float getMaxLs()
public void setMaxLs(float maxLs)
maxLs
- degrees solar longitudepublic int getMinMy()
public int getMaxMy()
public void setMinMy(int minMy)
minMy
- minimum Mars yearpublic void setMaxMy(int maxMy)
maxMy
- maximum Mars yearpublic float getMinLat()
public float getMaxLat()
public void setMinLat(float minLat)
minLat
- degreespublic void setMaxLat(float maxLat)
maxLat
- public float getMinLon()
public float getMaxLon()
public void setMinLon(float minLon)
minLon
- degrees 0 - 360public void setMaxLon(float maxLon)
maxLon
- degrees 0 - 360public float getCenLat()
public float getCenLon()
public void setCenLat(float cenLat)
cenLat
- degreespublic void setCenLon(float cenLon)
cenLon
- degrees 0 - 360public float getRange()
public void setRange(float range)
range
- kilometerspublic org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest req)
validate
in class TimeRangeForm
public int getNextMinOrbit()
public int getNextMaxOrbit()
public int getPrevMinOrbit()
public int getPrevMaxOrbit()
public int getNextMinCycle()
public int getNextMaxCycle()
public int getPrevMinCycle()
public int getPrevMaxCycle()
public java.lang.String getMinDate()
TimeRangeForm
getMinDate
in class TimeRangeForm
public java.lang.String getMaxDate()
TimeRangeForm
getMaxDate
in class TimeRangeForm
protected <T> void checkArray(T t, T[] array, java.lang.String key, org.apache.struts.action.ActionErrors errors, java.lang.String msg)
T
- Type of itemt
- itemarray
- The arraykey
- Message keyerrors
- Array of errorsmsg
- Message for userCopyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona