public class SecondHalfStereoList extends TargetList implements SearchInterface
SearchInterface
to generate the
"Second Half Stereo" list. Targets that are retrieved from the database
using this class are restricted to being "Second Half" stereos. In this
context, a second half stereo target is the second half of a pair of observations
to be planned. In general, the higher valued suggestion id of the pair is
usually the second half id, however, this is not a firm restriction. If either
id in a stereo pair of suggestions has been retired, the id that has not been
retired will be selected as the second half id, regardless of the ordering.TargetList.ColumnComparatorSettings, TargetList.ConfigurationParameter, TargetList.ListTypes, TargetList.OrderingFields, TargetList.TableAliases
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_DATA_VOLUME_BYTES_THRESHOLD |
static double |
DEFAULT_STEREO2_LSUBS_RANGE
The default seasonal range for stereo 2's.
|
static java.lang.String |
ID
Class identifier
|
DEBUG_EVENTS_PROPERTY, DEBUG_INIT_PROPERTY, DEBUG_LSUBS_FILTER_PROPERTY, DEBUG_NEARBY_LIST_PROPERTY, DEBUG_PRIORITIES_PROPERT, DEBUG_QUERY_PROPERTY, DEBUG_RED9_SHIFTS_PROPERTY, DEBUG_SEASONAL_PROPERTY, DEFAULT_CONFIGURATION_FILE, DEFAULT_MAXIMUM_LATITUDE, DEFAULT_MAXIMUM_LONGITUDE, DEFAULT_MAXIMUM_LSUBS, DEFAULT_MINIMUM_LATITUDE, DEFAULT_MINIMUM_LONGITUDE, DEFAULT_MINIMUM_LSUBS, DEFAULT_ROW_LIMIT
IGNORE_FILTER_UPDATES_NAME, MAX_LATITUDE_FIELDNAME, MAX_LONG_FIELDNAME, MAX_LSUBS_FIELDNAME, MIN_LATITUDE_FIELDNAME, MIN_LONG_FIELDNAME, MIN_LSUBS_FIELDNAME, PRIORITY_LISTNAME, ROW_LIMIT_ENABLENAME, ROW_LIMIT_FIELDNAME, SCIENCE_THEME_LISTNAME, SPECIAL_TARGETS_ADDED_PROPERTY, SPECIAL_TARGETS_REMOVED_PROPERTY, THEME_COUNT_FIELDNAME
Constructor and Description |
---|
SecondHalfStereoList() |
SecondHalfStereoList(PIRL.Configuration.Configuration configuration) |
SecondHalfStereoList(java.lang.String config_file) |
Modifier and Type | Method and Description |
---|---|
java.util.Vector<java.lang.Integer> |
addedSuggestionsNotFound()
If any of the suggestions ID's found in the list passed to the
SearchInterface.addSuggestions(Vector) were not found, they will be in the Vector
of Integers returned by this method. |
java.lang.String |
constructSearchQuery()
Constructs the base search query specific to the list being generated.
|
java.lang.String |
constructSecondaryQuery()
Constructs the secondary query that will query for special target
requests to add to the search list.
|
java.util.Vector<java.util.Vector<java.lang.String>> |
executeAddedSuggestionsSearch(java.util.Vector<java.util.Vector<java.lang.String>> dataTable)
This method executes a secondary database search for special targets.
|
java.util.Vector<java.util.Vector<java.lang.String>> |
executeSearch()
A method executing a database search for suggested targets, and will
usually execure the query returned by the
SearchInterface.constructSearchQuery()
method. |
static void |
main(java.lang.String[] args) |
TargetList.ListTypes |
precedence()
The precedence value for the list.
|
java.util.Vector<java.util.Vector<java.lang.String>> |
updateAddedSuggestions(java.util.Vector<java.util.Vector<java.lang.String>> dataTable)
Update the input dataTable with additional targets.
|
void |
useEmailQuery(boolean setemail) |
addNearbyObservationsColumn, addSeasonalColumn, addSuggestions, applyScienceThemeCountRestrictions, enableRowLimits, exportSelectedPriorites, findMissingSuggestions, getAddedSuggestions, getAddedSuggestionsSQL, getColumnNames, getColumnOrderingSQL, getCoordinateRestrictionsSQL, getDatabase, getLsubSRestrictionsSQL, getMaximumLatitude, getMaximumLongitude, getMaximumLs, getMinimumLatitude, getMinimumLongitude, getMinimumLs, getMissingSuggestionWarnings, getPrioritySQL, getRetrieveNearestNeighborList, getRowLimit, getScienceThemesList, getScienceThemesRestricionsSQL, getSeasonalData, getSelectedPriorities, getSelectedScienceThemes, getSuggestionData, getSuggestionsPerThemeLimit, hasRowLimitsEnabled, initializeScienceThemesList, initOrderingSettings, initPriorities, isInList, itemStateChanged, prepareDbQueries, propertyChange, setColumnNames, setConfiguration, setListType, setMaximumLatitude, setMaximumLongitude, setMaximumLs, setMinimumLatitude, setMinimumLongitude, setMinimumLs, setPriorities, setRetrieveNearestNeighborList, setRowLimit, setScienceThemes, setSuggestionsPerThemeLimit, setTabConfig, stateChanged, valueChanged
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addSuggestions, enableRowLimits, getAddedSuggestions, getMaximumLatitude, getMaximumLongitude, getMaximumLs, getMinimumLatitude, getMinimumLongitude, getMinimumLs, getRetrieveNearestNeighborList, getRowLimit, getSelectedPriorities, getSelectedScienceThemes, getSuggestionsPerThemeLimit, hasRowLimitsEnabled, initOrderingSettings, setMaximumLatitude, setMaximumLongitude, setMaximumLs, setMinimumLatitude, setMinimumLongitude, setMinimumLs, setPriorities, setRetrieveNearestNeighborList, setRowLimit, setScienceThemes, setSuggestionsPerThemeLimit
public static final java.lang.String ID
public static final double DEFAULT_STEREO2_LSUBS_RANGE
public static final int DEFAULT_MAX_DATA_VOLUME_BYTES_THRESHOLD
public SecondHalfStereoList() throws PIRL.Configuration.Configuration_Exception, PIRL.Database.Database_Exception
PIRL.Configuration.Configuration_Exception
PIRL.Database.Database_Exception
public SecondHalfStereoList(java.lang.String config_file) throws PIRL.Configuration.Configuration_Exception, PIRL.Database.Database_Exception
PIRL.Configuration.Configuration_Exception
PIRL.Database.Database_Exception
public SecondHalfStereoList(PIRL.Configuration.Configuration configuration) throws PIRL.Configuration.Configuration_Exception, PIRL.Database.Database_Exception
PIRL.Configuration.Configuration_Exception
PIRL.Database.Database_Exception
public TargetList.ListTypes precedence()
TargetList
precedence
in class TargetList
TargetList.ListTypes
public java.lang.String constructSearchQuery()
SearchInterface
Note: Many of the setters defined in this search interface are search criteria that are used to construct this query.
constructSearchQuery
in interface SearchInterface
constructSearchQuery
in class TargetList
SearchInterface.setMinimumLongitude(double)
,
SearchInterface.setMaximumLongitude(double)
,
SearchInterface.setMinimumLatitude(double)
,
SearchInterface.setMaximumLatitude(double)
,
SearchInterface.setMinimumLs(double)
,
SearchInterface.setMaximumLs(double)
,
SearchInterface.setPriorities(Vector)
,
SearchInterface.setScienceThemes(Vector)
,
SearchInterface.setSuggestionsPerThemeLimit(int)
,
SearchInterface.enableRowLimits(boolean)
,
SearchInterface.setRowLimit(int)
,
SearchInterface.setRetrieveNearestNeighborList(boolean)
public java.lang.String constructSecondaryQuery()
SearchInterface
constructSecondaryQuery
in interface SearchInterface
constructSecondaryQuery
in class TargetList
public java.util.Vector<java.util.Vector<java.lang.String>> executeSearch() throws PIRL.Database.Database_Exception
SearchInterface
SearchInterface.constructSearchQuery()
method.
Note that many of the getter and setters defined as part of the search
interface are used as parameters to define the search criteriaexecuteSearch
in interface SearchInterface
executeSearch
in class TargetList
PIRL.Database.Database_Exception
- if an error occurs during query executionpublic java.util.Vector<java.util.Vector<java.lang.String>> executeAddedSuggestionsSearch(java.util.Vector<java.util.Vector<java.lang.String>> dataTable) throws PIRL.Database.Database_Exception
SearchInterface
executeAddedSuggestionsSearch
in interface SearchInterface
dataTable
- - the dataTable to add the suggestion records toPIRL.Database.Database_Exception
public java.util.Vector<java.util.Vector<java.lang.String>> updateAddedSuggestions(java.util.Vector<java.util.Vector<java.lang.String>> dataTable) throws PIRL.Database.Database_Exception
SearchInterface
updateAddedSuggestions
in interface SearchInterface
dataTable
- - the dataTable to updatePIRL.Database.Database_Exception
- if an error occurs during the database interactionpublic java.util.Vector<java.lang.Integer> addedSuggestionsNotFound()
SearchInterface
SearchInterface.addSuggestions(Vector)
were not found, they will be in the Vector
of Integers returned by this method.addedSuggestionsNotFound
in interface SearchInterface
addedSuggestionsNotFound
in class TargetList
SearchInterface.addSuggestions(Vector)
list
that weren't included in the final list.SearchInterface.addSuggestions(Vector)
public void useEmailQuery(boolean setemail)
public static void main(java.lang.String[] args)
args
- Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona