HiRISE

HiRISE.HiCat.Utilities
Class Populate_Cycle_map

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

public class Populate_Cycle_map
extends Object

A class for finding appropriate state files to read cycle information from, and manage the population the the Cycle_map table in HiCat. Due to the adhoc nature of the state files. This class will (hopefully) be deprecated in the near future, in favor of a more reliable and robust mechanism.

Author:
Rodney Heyd UA/PIRL

Field Summary
static String DEFAULT_CONFIGURATION_FILE
           
static String DEFAULT_STATE_FILE_LOCATION
           
static int EXIT_CONFIGURATION_ERROR
           
static int EXIT_DATABASE_ERROR
           
static int EXIT_INVALID_COMMANDLINE_SYNTAX
           
static int EXIT_IO_ERROR
           
static int EXIT_MISSING_STATE_FILE
           
static int EXIT_SPICE_ERROR
           
static int EXIT_SUCCESS
           
static String ID
           
static String SPICE_TO_DB_TIME_FORMAT_STRING
           
 
Constructor Summary
Populate_Cycle_map()
           
Populate_Cycle_map(String configuration_file)
           
 
Method Summary
 HashMap<Integer,Cycle> Get_State_Files()
           
static void main(String[] arguments)
           
 Cycle Max_Read_Cycle()
           
 int Maximum_Confirmed_Cycle()
           
 int Maximum_Stored_Orbit()
           
 void Populate_Cycle_Table()
           
 void Populate_Table_From_State_Files()
          Deprecated.  
static void Usage()
          Prints the command line usage syntax.
 
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_FILE

public static final String DEFAULT_CONFIGURATION_FILE
See Also:
Constant Field Values

DEFAULT_STATE_FILE_LOCATION

public static final String DEFAULT_STATE_FILE_LOCATION
See Also:
Constant Field Values

SPICE_TO_DB_TIME_FORMAT_STRING

public static final String SPICE_TO_DB_TIME_FORMAT_STRING
See Also:
Constant Field Values

EXIT_SUCCESS

public static final int EXIT_SUCCESS
See Also:
Constant Field Values

EXIT_INVALID_COMMANDLINE_SYNTAX

public static final int EXIT_INVALID_COMMANDLINE_SYNTAX
See Also:
Constant Field Values

EXIT_CONFIGURATION_ERROR

public static final int EXIT_CONFIGURATION_ERROR
See Also:
Constant Field Values

EXIT_DATABASE_ERROR

public static final int EXIT_DATABASE_ERROR
See Also:
Constant Field Values

EXIT_SPICE_ERROR

public static final int EXIT_SPICE_ERROR
See Also:
Constant Field Values

EXIT_MISSING_STATE_FILE

public static final int EXIT_MISSING_STATE_FILE
See Also:
Constant Field Values

EXIT_IO_ERROR

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

Populate_Cycle_map

public Populate_Cycle_map(String configuration_file)
                   throws Configuration_Exception,
                          Database_Exception
Throws:
Configuration_Exception
Database_Exception

Populate_Cycle_map

public Populate_Cycle_map()
                   throws Configuration_Exception,
                          Database_Exception
Throws:
Configuration_Exception
Database_Exception
Method Detail

Get_State_Files

public HashMap<Integer,Cycle> Get_State_Files()
                                       throws Invalid_Argument_Exception,
                                              IOException,
                                              State_File.Validation_Exception,
                                              FileNotFoundException
Throws:
Invalid_Argument_Exception
IOException
State_File.Validation_Exception
FileNotFoundException

Populate_Table_From_State_Files

public void Populate_Table_From_State_Files()
                                     throws Database_Exception,
                                            SPICE_Exception,
                                            FileNotFoundException,
                                            Invalid_Argument_Exception,
                                            IOException,
                                            State_File.Validation_Exception
Deprecated. 

Throws:
Database_Exception
SPICE_Exception
FileNotFoundException
Invalid_Argument_Exception
IOException
State_File.Validation_Exception

Populate_Cycle_Table

public void Populate_Cycle_Table()
                          throws Database_Exception
Throws:
Database_Exception

Maximum_Stored_Orbit

public int Maximum_Stored_Orbit()
                         throws Database_Exception
Throws:
Database_Exception

Maximum_Confirmed_Cycle

public int Maximum_Confirmed_Cycle()
                            throws Database_Exception
Throws:
Database_Exception

Max_Read_Cycle

public Cycle Max_Read_Cycle()

main

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

Usage

public static void Usage()
Prints the command line usage syntax.

Usage: Populate_Cycle_map <Options>
  Options -
    [-Configuration <filename>
      (default: HiCat.conf)
    [-Maximum_Cycle_To_Estimate Cycle_Number
    [-Help]
    [-Version]


HiRISE

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