public class Related_Suggestions
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_CONFIGURATION_FILENAME
The default configuration file if one isn't provided on the command line.
|
static int |
EXIT_COMMAND_LINE_SYNTAX_ERROR |
static int |
EXIT_CONFIGURATION_ERROR |
static int |
EXIT_DATABASE_CONNECT_ERROR |
static int |
EXIT_NO_PARENT_SUGGESTION |
static int |
EXIT_QUERY_ERROR |
static int |
EXIT_SUCCESS |
static int |
EXIT_UNDEFINED_OBSERVATION_ID |
static java.lang.String |
ID |
Constructor and Description |
---|
Related_Suggestions(PIRL.Database.Database database,
int suggestion_id)
Instantiate the class given a Database and a suggestion_id.
|
Modifier and Type | Method and Description |
---|---|
java.util.Vector<java.util.Vector<java.lang.String>> |
Get_Observations()
Returns a vector of vectors containing information about Obsevations that
may have been acquired for a related suggestion.
|
java.util.Vector<java.util.Vector<java.lang.String>> |
Get_Related_Suggestions()
Get the suggestions related to the input suggestion.
|
java.util.Vector<java.util.Vector<java.lang.String>> |
Get_Related_Suggestions(java.lang.String type)
Get the suggestions that are related by a specific suggestion type.
|
static void |
main(java.lang.String[] args) |
public static final java.lang.String ID
public static final java.lang.String DEFAULT_CONFIGURATION_FILENAME
public static final int EXIT_SUCCESS
public static final int EXIT_COMMAND_LINE_SYNTAX_ERROR
public static final int EXIT_NO_PARENT_SUGGESTION
public static final int EXIT_QUERY_ERROR
public static final int EXIT_DATABASE_CONNECT_ERROR
public static final int EXIT_UNDEFINED_OBSERVATION_ID
public static final int EXIT_CONFIGURATION_ERROR
public Related_Suggestions(PIRL.Database.Database database, int suggestion_id)
database
- The Database object having connection to HiCat.suggestion_id
- The Suggestion ID to find relations for.Database
public java.util.Vector<java.util.Vector<java.lang.String>> Get_Related_Suggestions()
public java.util.Vector<java.util.Vector<java.lang.String>> Get_Related_Suggestions(java.lang.String type)
type
- The type of relation to return, currently allowed values are
"Seasonal" and "Stereo."Get_Related_Suggestions()
methodpublic java.util.Vector<java.util.Vector<java.lang.String>> Get_Observations()
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