HiRISE

HiRISE.HiCat.Utilities
Class Related_Suggestions

java.lang.Object
  extended by HiRISE.HiCat.Utilities.Related_Suggestions

public class Related_Suggestions
extends Object

This class will find suggestions that are related. At this time, this just means sets of seasonal suggestions or stereo pairs.

Version:
1.3
Author:
Rodney Heyd UA/PIRL

Field Summary
static 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 String ID
           
 
Constructor Summary
Related_Suggestions(Database database, int suggestion_id)
          Instantiate the class given a Database and a suggestion_id.
 
Method Summary
 Vector<Vector<String>> Get_Observations()
          Returns a vector of vectors containing information about Obsevations that may have been acquired for a related suggestion.
 Vector<Vector<String>> Get_Related_Suggestions()
          Get the suggestions related to the input suggestion.
 Vector<Vector<String>> Get_Related_Suggestions(String type)
          Get the suggestions that are related by a specific suggestion type.
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final String ID
See Also:
Constant Field Values

DEFAULT_CONFIGURATION_FILENAME

public static final String DEFAULT_CONFIGURATION_FILENAME
The default configuration file if one isn't provided on the command line.

See Also:
Constant Field Values

EXIT_SUCCESS

public static final int EXIT_SUCCESS
See Also:
Constant Field Values

EXIT_COMMAND_LINE_SYNTAX_ERROR

public static final int EXIT_COMMAND_LINE_SYNTAX_ERROR
See Also:
Constant Field Values

EXIT_NO_PARENT_SUGGESTION

public static final int EXIT_NO_PARENT_SUGGESTION
See Also:
Constant Field Values

EXIT_QUERY_ERROR

public static final int EXIT_QUERY_ERROR
See Also:
Constant Field Values

EXIT_DATABASE_CONNECT_ERROR

public static final int EXIT_DATABASE_CONNECT_ERROR
See Also:
Constant Field Values

EXIT_UNDEFINED_OBSERVATION_ID

public static final int EXIT_UNDEFINED_OBSERVATION_ID
See Also:
Constant Field Values

EXIT_CONFIGURATION_ERROR

public static final int EXIT_CONFIGURATION_ERROR
See Also:
Constant Field Values
Constructor Detail

Related_Suggestions

public Related_Suggestions(Database database,
                           int suggestion_id)
Instantiate the class given a Database and a suggestion_id.

Parameters:
database - The Database object having connection to HiCat.
suggestion_id - The Suggestion ID to find relations for.
See Also:
Database
Method Detail

Get_Related_Suggestions

public Vector<Vector<String>> Get_Related_Suggestions()
Get the suggestions related to the input suggestion.

Returns:
A vector of vectors. Each vector contains the Relation ID as the first element, the Suggestion ID as the second element and the Relation Type as the final element.

Get_Related_Suggestions

public Vector<Vector<String>> Get_Related_Suggestions(String type)
Get the suggestions that are related by a specific suggestion type.

Parameters:
type - The type of relation to return, currently allowed values are "Seasonal" and "Stereo."
Returns:
A vector of vectors of the same form as the Get_Related_Suggestions() method

Get_Observations

public Vector<Vector<String>> Get_Observations()
Returns a vector of vectors containing information about Obsevations that may have been acquired for a related suggestion.

Returns:
Each vector contains the suggestion ID, the STL_STEREO flag to indicate of the suggestion is intended to be stereo, and finally the observation ID of the related Observation.

main

public static void main(String[] args)
Parameters:
args -

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona