HiRISE

HiRISE.EDRgen
Class Observation_Status

java.lang.Object
  extended by HiRISE.EDRgen.Observation_Status

public class Observation_Status
extends Object

Determines if all image data has been obtained for each observation in the input and can update the status field of the Planned_Observations table accordingly; The observation's status can be set to either COMPLETE or INCOMPLETE but only if it is already either INCOMPLETE, REQUEST or NULL. Observation_Status.java,v 2.12 2009/03/11 21:22:54 guym Exp


Field Summary
static String ID
          CVS ID
 
Method Summary
 double getPercentComplete()
          Return the completion percentage for a particular Observation.
static void main(String[] args)
          Command-line utility that, given a list of observation id's, prints the percent complete.
 void select()
          Query the database for the necessary information
 int update(String status)
          Set the status for a particular observation.
 
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
CVS ID

See Also:
Constant Field Values
Method Detail

select

public void select()
            throws SQLException
Query the database for the necessary information

Throws:
SQLException

update

public int update(String status)
           throws SQLException
Set the status for a particular observation.

Parameters:
status - "INCOMPLETE" or "COMPLETE"
Returns:
number of rows updated or -1 on failure
Throws:
SQLException

getPercentComplete

public double getPercentComplete()
                          throws SQLException
Return the completion percentage for a particular Observation. This will typically be a number in the range 0 to 100, although it is possible for it to be > 100 if there is more than one set of EDRs for a given Commanded_ID. The algorithm is 100 * (completed image lines) / (planned image lines) - gap pixels %

Returns:
Percent of image acquired minus percent gapped
Throws:
SQLException

main

public static void main(String[] args)
Command-line utility that, given a list of observation id's, prints the percent complete. The observation's status is set to either COMPLETE or INCOMPLETE.


HiRISE

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