public class Suggested_Observations extends java.lang.Object implements edu.asu.jmars.layer.util.features.FeatureProvider, Observation_Fields
This provider pops a dialog for controlling the parameters for the database query.
Database configuration information is taken from the user's environment via
the Constants.CONFIGURATION_PROPERTY
system
property, which names a file to be used. If there is a problem with the
configuration or with the database connection, provider reports this fact
to the operator.
Coordinates: The HiRISE observation suggestion dataset is planetocentric, east-leading. The shape layer takes planetocentric, west-leading data, so the longitude data are converted to west-leading.
Modifier and Type | Class and Description |
---|---|
static class |
Suggested_Observations.QueryOption |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DATABASE_FACTORY_ID
The name of the optional configuration parameter to hold a unique ID for the
suggested observations feature provider's database object.
|
static java.lang.String |
DEFAULT_DATABASE_FACTORY_ID
The default database factory ID for the suggested observations feature
provider.
|
static Suggested_Observations.QueryOption |
DEFAULT_QUERY_OPTION |
static java.lang.String |
ID
Class identification name with source code version and date.
|
static java.lang.String |
QUERY_OPTION |
static java.lang.String |
SERVICE_DESCRIPTION |
ALTITUDE, ANCILLARY_DATA, ASCENDING_PASS, CALIBRATION, CENTER_PLANETOCENTRIC_LATITUDE, CENTER_PLANETOGRAPHIC_LATITUDE, COMMAND_FILE_ASP_RECEIPT_TIME, COMMAND_FILE_DOM_RECEIPT_TIME, COMMAND_FILE_GENERATION_TIME, COMMAND_FILE_MRO_UPLINK_TIME, COMMAND_FILE_PATHNAME, COMMANDER, COMMENT, COMPLETE, CONTRAST_RATIO, COORDINATED_TRACK_HISTORY, COORDINATION, CPMM_00_ON, CPMM_01_ON, CPMM_02_ON, CPMM_03_ON, CPMM_04_ON, CPMM_05_ON, CPMM_06_ON, CPMM_07_ON, CPMM_08_ON, CPMM_09_ON, CPMM_10_ON, CPMM_11_ON, CPMM_12_ON, CPMM_13_ON, CPMM_POWER_FIELDS, CRC_CHECK, CRISM_COORDINATION, CTX_COORDINATION, DEFAULT_FELICS_COMPRESSION_RATIO, DEFUNCT, DEIMOS, DELAY_BY, DESCENDING_PASS, DUST, END_PLANETOCENTRIC_LATITUDE, END_PLANETOGRAPHIC_LATITUDE, ESTIMATED_EMISSION_ANGLE, ESTIMATED_INCIDENCE_ANGLE, ESTIMATED_PHASE_ANGLE, ESTIMATED_RECEIVE_TIME, ESTIMATED_ROLL_ANGLE, EXECUTED, FELICS_COMPRESSION_FLAG, FELICS_COMPRESSION_RATIO, FOOTPRINT_PLANETOCENTRIC_VERTICES, FOOTPRINT_PLANETOGRAPHIC_VERTICES, FROST_ALBEDO, FROST_COVER, HELIOCENTRIC_DISTANCE, HIGH_STABILITY, HIGH_STABILITY_LARGE_ROLL, HIGH_STABILITY_NADIR, HIGH_STABILITY_SMALL_ROLL, HISTORY, ICE, IMAGE_WIDTH, INCOMPLETE, INSTRUMENT_SET, KA_BAND_PLAYBACK, KEEP_STIM_LAMPS_ON_FLAG, LAST_UPDATE, LSUBS, LUNA, LUT_SELECTOR_BG_FUDGE_FACTOR, LUT_SELECTOR_IR_FUDGE_FACTOR, LUT_SELECTOR_RED_FUDGE_FACTOR, MANUAL_DELAY_BY_FLAG, MARS, MINIMUM_SETUP_DURATIONS, MOON, NO, NOOP, NOPROC, NORMAL_STABILITY, NORMAL_STABILITY_LARGE_ROLL, NORMAL_STABILITY_NADIR, NORMAL_STABILITY_SMALL_ROLL, NOTES, OBSERVATION_DURATION, OBSERVATION_ID, OBSERVATION_TYPE, OFF, OFFSET_CENTER_ALTITUDE, OFFSET_CENTER_LONGITUDE, OFFSET_CENTER_PLANETOCENTRIC_LATITUDE, OFFSET_CENTER_PLANETOGRAPHIC_LATITUDE, ON, OPTICAL_DEPTH, ORBIT_ALTERNATIVES, ORBIT_NUMBER, ORBIT_PASS, OTHER_COORDINATION, PHOBOS, PI_APPROVAL_TO_RELEASE_FLAG, PLANNED, PLANNED_OBSERVATIONS_TABLE, PLANNER, PLAYBACK_MODE, PREDICT_TIME, RAW_DATA_VOLUME_BYTES, RELATIONAL_DATA, RELATIVE_TIMED_SEQUENCE_FLAG, REQUEST_CATEGORY, REQUEST_PRIORITY, REQUESTED, SCAN_EXPOSURE_DURATION, SCATTERING_SOURCE, SCATTERING_SOURCES, SCMF, SEQUENCE_ID, SETUP_DURATION, SKY, SPARE_3, STABILITY, STARS, START_PLANETOCENTRIC_LATITUDE, START_PLANETOGRAPHIC_LATITUDE, STATUS, STATUSES, STIMULATION_LAMP_BLG_ON, STIMULATION_LAMP_NIR_ON, STIMULATION_LAMP_POWER_FIELDS, STIMULATION_LAMP_RED_ON, SUCCESS_ACQUIRED_TIME, SURFACE_ROUGHNESS, SURFACE_TYPE, TARGET_NAME, TARGET_NAMES, X_BAND_PLAYBACK, YES
Constructor and Description |
---|
Suggested_Observations()
Creates a new feature provider for suggested HiRISE observations.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Gets a description of this feature provider.
|
java.io.File[] |
getExistingSaveToFiles(edu.asu.jmars.layer.util.features.FeatureCollection featureCollection,
java.lang.String baseName)
Gets the names of the files output by a save with the given base name and
feature collection.
|
java.lang.String |
getExtension()
Gets the file extension.
|
boolean |
isFileBased()
Tests whether this provider pulls data from a file.
|
boolean |
isRepresentable(edu.asu.jmars.layer.util.features.FeatureCollection featureCollection)
Tests whether the given can be completely represented in the source format
of this provider.
|
edu.asu.jmars.layer.util.features.FeatureCollection |
load(java.lang.String filename)
Gets a new feature collection containing data from the provider's database.
|
int |
save(edu.asu.jmars.layer.util.features.FeatureCollection featureCollection,
java.lang.String filename)
Writes the specified features to source the feature provider was constructed
from.
|
public static final java.lang.String ID
public static final java.lang.String SERVICE_DESCRIPTION
public static final java.lang.String DATABASE_FACTORY_ID
Constants.APPLICATION_GROUP
(Shapes).
The ID is used in the DatabaseFactory.getInstance(Configuration,String)
method. If this parameter
is not specified, DEFAULT_DATABASE_FACTORY_ID
will be used; each of
the shape layer feature providers that uses the database uses its own such
ID, resulting in each provider using its own connection. The parameters can
be tweaked in the user's configuration should sharing a connection be
desired.
Parameter name: Suggested_Observations_DBF_ID.
public static final java.lang.String DEFAULT_DATABASE_FACTORY_ID
Value: Shapes.Suggested_Observations.
DATABASE_FACTORY_ID
,
Constant Field Valuespublic static final java.lang.String QUERY_OPTION
public static final Suggested_Observations.QueryOption DEFAULT_QUERY_OPTION
public Suggested_Observations()
public java.lang.String getDescription()
getDescription
in interface edu.asu.jmars.layer.util.features.FeatureProvider
public java.io.File[] getExistingSaveToFiles(edu.asu.jmars.layer.util.features.FeatureCollection featureCollection, java.lang.String baseName)
getExistingSaveToFiles
in interface edu.asu.jmars.layer.util.features.FeatureProvider
featureCollection
- the feature collection in question.baseName
- the base name in question.public java.lang.String getExtension()
getExtension
in interface edu.asu.jmars.layer.util.features.FeatureProvider
public boolean isFileBased()
isFileBased
in interface edu.asu.jmars.layer.util.features.FeatureProvider
public boolean isRepresentable(edu.asu.jmars.layer.util.features.FeatureCollection featureCollection)
isRepresentable
in interface edu.asu.jmars.layer.util.features.FeatureProvider
featureCollection
- the collection to be tested.public edu.asu.jmars.layer.util.features.FeatureCollection load(java.lang.String filename)
load
in interface edu.asu.jmars.layer.util.features.FeatureProvider
filename
- unused, but required by the interface.public int save(edu.asu.jmars.layer.util.features.FeatureCollection featureCollection, java.lang.String filename)
UnsupportedOperationException
is thrown if this method is called.save
in interface edu.asu.jmars.layer.util.features.FeatureProvider
featureCollection
- the collection of features in question.filename
- a filename.Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona