|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.struts.action.ActionForm HiRISE.HiReport.form.PageSortForm HiRISE.HiReport.form.TimeRangeForm HiRISE.HiReport.form.ObservationListForm
public class ObservationListForm
Form for observation-based listings. This captures any and all information pertaining to a query that could return zero or more observations. It internally has a TimeRangeModel. Upon validation, this will be updated to contain the min and max time for the query.
Field Summary | |
---|---|
protected boolean |
active
If true, include the not retired |
protected String |
by
Do search by distance in km or degrees? |
protected float |
cenLat
Center latitude ('ocentric) |
protected float |
cenLon
Center longitude (east) |
protected String |
description
description or comment text |
protected boolean |
highStability
If true, include high stability |
static String |
ID
CVS ID |
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 |
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 |
minOrbit
Minimum orbit number |
protected boolean |
nadir
If true, include roll angle == 0 |
protected boolean |
nonstereo
If true, include non-stereo |
protected String[] |
noproduct
Product (has not) values |
protected boolean |
nopub
|
protected boolean |
normStability
If true, include norm stability |
protected String |
observation
observation pattern, may or may not be full observation ID |
protected boolean |
offnadir
If true, include roll angle != 0 |
protected String[] |
phase
Mission phases |
static String[] |
PHASES
Options array for mission phases |
protected String |
planner
Name of planner |
protected String[] |
product
Product (has) values |
protected boolean |
pub
|
protected float |
range
Range from center (degrees) |
protected boolean |
retired
If true, include retired |
protected boolean |
sc
If true, search comment |
protected boolean |
sd
If true, search description |
protected String |
season
season name, corresponding to one of the keys in the seasons map |
protected static Map<String,int[]> |
seasons
Maps range choices to Calendar unit fields |
protected boolean |
sn
If true, search notes |
protected boolean |
sp
If true, search planner's note |
protected boolean |
sr
If true, search science rationale |
protected boolean |
ss
If true, search stl_description |
protected String[] |
status
Status values |
static String[] |
STATUSES
Options array for status values |
protected boolean |
stereo
If true, include stereo |
protected String |
suggester
User name from People table |
protected int |
suggestion
Suggestion id |
protected String[] |
tag
Tag values |
protected String[] |
target
Target array |
static String[] |
TARGETS
Options array for target names |
protected String[] |
theme
science theme array |
static String[] |
THEMES
Options array for science themes |
protected String |
username
User name of the suggester |
protected boolean |
word
If true, do a whole-word search |
Fields inherited from class HiRISE.HiReport.form.TimeRangeForm |
---|
maxDate, minDate, plus, TIME_FORMATS, timeFormatters, timeUnits, unit |
Fields inherited from class HiRISE.HiReport.form.PageSortForm |
---|
EXPORT_MAX_ROWS |
Fields inherited from class org.apache.struts.action.ActionForm |
---|
multipartRequestHandler, servlet |
Constructor Summary | |
---|---|
ObservationListForm()
|
Method Summary | ||
---|---|---|
protected
|
checkArray(T t,
T[] array,
String key,
org.apache.struts.action.ActionErrors errors,
String msg)
Check that an item is in an array, which may be unsorted. |
|
boolean |
getActive()
|
|
String |
getBy()
Get the value of by (units of range, either km or deg) |
|
float |
getCenLat()
|
|
float |
getCenLon()
|
|
String |
getDescription()
Get the description being searched on |
|
boolean |
getHighStability()
|
|
int |
getMaxCycle()
|
|
String |
getMaxDate()
Get the max date, or null if no max date has been input |
|
float |
getMaxLat()
|
|
float |
getMaxLon()
|
|
float |
getMaxLs()
|
|
int |
getMaxOrbit()
|
|
int |
getMinCycle()
|
|
String |
getMinDate()
Get the start date, or null if no min date has been input |
|
float |
getMinLat()
|
|
float |
getMinLon()
|
|
float |
getMinLs()
|
|
int |
getMinOrbit()
|
|
boolean |
getNadir()
|
|
boolean |
getNonstereo()
|
|
String[] |
getNoproduct()
|
|
boolean |
getNopub()
|
|
boolean |
getNormStability()
|
|
String |
getObservation()
|
|
boolean |
getOffnadir()
|
|
String[] |
getPhase()
Get the mission phase name |
|
String[] |
getPhases()
Get the array of possible (abbreviated) mission phase names. |
|
String |
getPlanner()
Get the planner name |
|
String[] |
getProduct()
|
|
boolean |
getPub()
|
|
float |
getRange()
|
|
boolean |
getRetired()
|
|
boolean |
getSc()
|
|
boolean |
getSd()
|
|
String |
getSeason()
|
|
String[] |
getSeasons()
Get the array of possible season names. |
|
boolean |
getSn()
|
|
boolean |
getSp()
|
|
boolean |
getSr()
|
|
boolean |
getSs()
|
|
String[] |
getStatus()
Get the status value |
|
String[] |
getStatuses()
Get the array of possible status values. |
|
boolean |
getStereo()
|
|
String |
getSuggester()
|
|
int |
getSuggestion()
|
|
String[] |
getTag()
|
|
String[] |
getTarget()
Get the target name |
|
String[] |
getTargets()
Get the array of possible target names. |
|
String[] |
getTheme()
Get the science theme. |
|
String[] |
getThemes()
Get the array of possible science themes. |
|
String |
getUsername()
|
|
boolean |
getWord()
|
|
void |
reset(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest req)
Reset parameters |
|
void |
setActive(boolean active)
|
|
void |
setBy(String by)
Set the value of by (units of range, either km or deg) |
|
void |
setCenLat(float cenLat)
|
|
void |
setCenLon(float cenLon)
|
|
void |
setDescription(String description)
Set the description being searched on |
|
void |
setHighStability(boolean highStability)
|
|
void |
setMaxCycle(int maxCycle)
|
|
void |
setMaxLat(float maxLat)
|
|
void |
setMaxLon(float maxLon)
|
|
void |
setMaxLs(float maxLs)
|
|
void |
setMaxOrbit(int maxOrbit)
|
|
void |
setMinCycle(int minCycle)
|
|
void |
setMinLat(float minLat)
|
|
void |
setMinLon(float minLon)
|
|
void |
setMinLs(float minLs)
|
|
void |
setMinOrbit(int minOrbit)
|
|
void |
setNadir(boolean nadir)
|
|
void |
setNonstereo(boolean nonstereo)
|
|
void |
setNoproduct(String... noproduct)
Set no-products |
|
void |
setNopub(boolean nopub)
|
|
void |
setNormStability(boolean normStability)
|
|
void |
setObservation(String observation)
|
|
void |
setOffnadir(boolean offnadir)
|
|
void |
setPhase(String... phase)
Set the mission phase name |
|
void |
setPlanner(String planner)
Set the planner name |
|
void |
setProduct(String... product)
Set products |
|
void |
setPub(boolean pub)
|
|
void |
setRange(float range)
|
|
void |
setRetired(boolean retired)
|
|
void |
setSc(boolean sc)
|
|
void |
setSd(boolean sd)
|
|
void |
setSeason(String season)
|
|
void |
setSn(boolean sn)
|
|
void |
setSp(boolean sp)
|
|
void |
setSr(boolean sr)
|
|
void |
setSs(boolean ss)
|
|
void |
setStatus(String... status)
Set the status value |
|
void |
setStereo(boolean stereo)
|
|
void |
setSuggester(String suggester)
|
|
void |
setSuggestion(int suggestion)
|
|
void |
setTag(String... tag)
Set tag names |
|
void |
setTarget(String... target)
Set the target name |
|
void |
setTheme(String... theme)
Set the science theme |
|
void |
setUsername(String username)
|
|
void |
setWord(boolean word)
|
|
org.apache.struts.action.ActionErrors |
validate(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest req)
Validate the form input |
Methods inherited from class HiRISE.HiReport.form.TimeRangeForm |
---|
getPlus, getTimeRange, getTimeUnit, getTimeUnits, parseDate, setMaxDate, setMinDate, setPlus, setTimeUnit |
Methods inherited from class HiRISE.HiReport.form.PageSortForm |
---|
getDir, getPage, getSize, getSort, isAscending, setDir, setPage, setSize, setSort |
Methods inherited from class org.apache.struts.action.ActionForm |
---|
getMultipartRequestHandler, getServlet, getServletWrapper, reset, setMultipartRequestHandler, setServlet, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ID
public static final String[] PHASES
public static String[] TARGETS
public static final String[] STATUSES
public static final String[] THEMES
protected static Map<String,int[]> seasons
protected String[] phase
protected String[] status
protected String[] product
protected String[] noproduct
protected String[] tag
protected String[] target
protected String description
protected String[] theme
protected float minLs
protected float maxLs
protected int minOrbit
protected int maxOrbit
protected int suggestion
protected float minLat
protected float maxLat
protected float minLon
protected float maxLon
protected float cenLat
protected float cenLon
protected float range
protected String planner
protected String season
protected String observation
protected int minCycle
protected int maxCycle
protected boolean highStability
protected boolean normStability
protected boolean stereo
protected boolean nonstereo
protected boolean nadir
protected boolean offnadir
protected boolean sc
protected boolean sd
protected boolean ss
protected boolean sr
protected boolean sn
protected boolean sp
protected String suggester
protected String username
protected boolean retired
protected boolean active
protected boolean word
protected String by
protected boolean pub
protected boolean nopub
Constructor Detail |
---|
public ObservationListForm()
Method Detail |
---|
public String[] getPhases()
public String[] getTargets()
public String[] getThemes()
public String[] getSeasons()
public String[] getStatuses()
public String getPlanner()
public void setPlanner(String planner)
planner
- name of plannerpublic String getBy()
public void setBy(String by)
by
- search bypublic String getDescription()
public void setDescription(String description)
description
- textpublic void setPhase(String... phase)
phase
- mission phasepublic void setTarget(String... target)
target
- name of targetpublic void setProduct(String... product)
product
- product IDspublic void setNoproduct(String... noproduct)
noproduct
- product IDspublic void setTag(String... tag)
tag
- Tag namespublic void setStatus(String... status)
status
- value for statuspublic String[] getPhase()
public String[] getTarget()
public String[] getStatus()
public String[] getTag()
public String[] getProduct()
public String[] getNoproduct()
public String[] getTheme()
public void setTheme(String... theme)
theme
- themepublic float getMinLs()
public void setMinLs(float minLs)
public float getMaxLs()
public void setMaxLs(float maxLs)
public int getMinOrbit()
public int getMaxOrbit()
public void setMinOrbit(int minOrbit)
public void setMaxOrbit(int maxOrbit)
public float getMinLat()
public float getMaxLat()
public void setMinLat(float minLat)
public void setMaxLat(float maxLat)
public float getMinLon()
public float getMaxLon()
public void setMinLon(float minLon)
public void setMaxLon(float maxLon)
public float getCenLat()
public float getCenLon()
public void setCenLat(float cenLat)
public void setCenLon(float cenLon)
public float getRange()
public void setRange(float range)
public int getSuggestion()
public void setSuggestion(int suggestion)
public void setSeason(String season)
public String getSeason()
public String getObservation()
public void setObservation(String observation)
public int getMinCycle()
public void setMinCycle(int minCycle)
public int getMaxCycle()
public void setMaxCycle(int maxCycle)
public boolean getHighStability()
public void setHighStability(boolean highStability)
public boolean getNormStability()
public void setNormStability(boolean normStability)
public boolean getStereo()
public void setStereo(boolean stereo)
public boolean getNonstereo()
public void setNonstereo(boolean nonstereo)
public boolean getNadir()
public void setNadir(boolean nadir)
public boolean getOffnadir()
public void setOffnadir(boolean offnadir)
public void setSc(boolean sc)
public void setSd(boolean sd)
public void setSs(boolean ss)
public void setSr(boolean sr)
public void setSn(boolean sn)
public void setSp(boolean sp)
public boolean getSc()
public boolean getSd()
public boolean getSs()
public boolean getSr()
public boolean getSn()
public boolean getSp()
public String getSuggester()
public void setSuggester(String suggester)
public String getUsername()
public void setUsername(String username)
public boolean getActive()
public void setActive(boolean active)
public boolean getRetired()
public void setRetired(boolean retired)
public boolean getWord()
public void setWord(boolean word)
public boolean getPub()
public void setPub(boolean pub)
public boolean getNopub()
public void setNopub(boolean nopub)
public String getMinDate()
TimeRangeForm
getMinDate
in class TimeRangeForm
public String getMaxDate()
TimeRangeForm
getMaxDate
in class TimeRangeForm
public void reset(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest req)
PageSortForm
reset
in class PageSortForm
public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest req)
validate
in class TimeRangeForm
protected <T> void checkArray(T t, T[] array, String key, org.apache.struts.action.ActionErrors errors, String msg)
T
- Type of itemt
- itemarray
- The arraykey
- Message keyerrors
- Array of errorsmsg
- Message for user
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |