HiRISE

HiRISE.HiReport.downlink
Class ProductStatusList

java.lang.Object
  extended by HiRISE.HiReport.DataProvider
      extended by HiRISE.HiReport.downlink.ProductStatusList
Direct Known Subclasses:
ObservationGeometryList

public class ProductStatusList
extends DataProvider

Collects info about products produced for an orbit range or single observation.


Field Summary
protected  Map<String,ProductObservationNode> data
          Collected data
 
Fields inherited from class HiRISE.HiReport.DataProvider
Anaglyph, CCD, Cycles, DTM, EDR, FS, Geo, HiP, HiRISE_ROOT, Jit, logger, Mars_Years, Obs, Orbits, PAP, PDTM, PEDR, PHiP, PPL, PPL_map, PRDR, PS, PXP, RDR, RS1, RS2, SO, SOP, SOPO, SOPO_map, SOST, SOST_map, SR, ST, Tags, Web, XP
 
Constructor Summary
ProductStatusList()
           
 
Method Summary
 void addProductObservationNode(ProductObservationNode node)
          Add a node for an observation
 Collection<ProductObservationNode> getList()
          Get the collection of observation nodes containing the data
 String getSQL()
          Get the query string
 void init(ProductStatusForm form)
          Prepare for queries
 int loadAnaglyphs(boolean released)
          Query and load the info for anaglyphs
 int loadDTMextras(boolean released)
          Query and load the info for DTM extras
 int loadDTMs(boolean released)
          Query and load the info for DTMs
 int loadEDRs(boolean released)
          Query and load the info for EDRs
 int loadExtras(boolean released)
          Query and load the info for EDR and RDR extras
 int loadObservations()
          Query and load the planned observation, suggestion, geometry and CCD data
 void loadProductStatus(boolean released)
          Query and load the status info
 int loadRDRs(boolean released)
          Query and load the info for RDRs
 void loadTags(boolean released)
          Query and load the tagging info
 void setCommanding()
          Call set commanding for each obtained node.
 void setExcludedTargets(String... excludedTargets)
          Change the list of excluded target names
 
Methods inherited from class HiRISE.HiReport.DataProvider
getConnection, setConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

protected final Map<String,ProductObservationNode> data
Collected data

Constructor Detail

ProductStatusList

public ProductStatusList()
Method Detail

init

public void init(ProductStatusForm form)
          throws SQLException
Prepare for queries

Parameters:
form - input
Throws:
SQLException - connection could not be obtained

setExcludedTargets

public void setExcludedTargets(String... excludedTargets)
Change the list of excluded target names

Parameters:
excludedTargets - name(s)

addProductObservationNode

public void addProductObservationNode(ProductObservationNode node)
Add a node for an observation

Parameters:
node - the node instance

loadObservations

public int loadObservations()
                     throws SQLException,
                            ParseException
Query and load the planned observation, suggestion, geometry and CCD data

Returns:
number of rows
Throws:
SQLException - query failed
ParseException - invalid data

loadEDRs

public int loadEDRs(boolean released)
             throws SQLException
Query and load the info for EDRs

Parameters:
released - if true, only info on released products will be returned
Returns:
number of rows
Throws:
SQLException - query failed

loadRDRs

public int loadRDRs(boolean released)
             throws SQLException
Query and load the info for RDRs

Parameters:
released - if true, only info on released products will be returned
Returns:
number of rows
Throws:
SQLException - query failed

loadExtras

public int loadExtras(boolean released)
               throws SQLException
Query and load the info for EDR and RDR extras

Parameters:
released - if true, only info on released products will be returned
Returns:
number of rows
Throws:
SQLException - query failed

loadAnaglyphs

public int loadAnaglyphs(boolean released)
                  throws SQLException
Query and load the info for anaglyphs

Parameters:
released - if true, only info on released products will be returned
Returns:
number of rows
Throws:
SQLException - query failed

loadDTMs

public int loadDTMs(boolean released)
             throws SQLException
Query and load the info for DTMs

Parameters:
released - if true, only info on released products will be returned
Returns:
number of rows
Throws:
SQLException - query failed

loadDTMextras

public int loadDTMextras(boolean released)
                  throws SQLException
Query and load the info for DTM extras

Parameters:
released - if true, only info on released products will be returned
Returns:
number of rows
Throws:
SQLException - query failed

setCommanding

public void setCommanding()
Call set commanding for each obtained node. This should be done after loadObservations.


loadTags

public void loadTags(boolean released)
              throws SQLException
Query and load the tagging info

Parameters:
released - if true, only info on released observations will be returned
Throws:
SQLException - query failed

loadProductStatus

public void loadProductStatus(boolean released)
                       throws SQLException
Query and load the status info

Parameters:
released - if true, only info on released products will be returned
Throws:
SQLException - query failed

getList

public Collection<ProductObservationNode> getList()
Get the collection of observation nodes containing the data

Returns:
data nodes

getSQL

public String getSQL()
Get the query string

Returns:
SQL

HiRISE

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