HiRISE

HiRISE.HiReport.product
Class EdrValidationNode

java.lang.Object
  extended by HiRISE.HiReport.product.ObservationNode
      extended by HiRISE.HiReport.product.EdrValidationNode
All Implemented Interfaces:
Serializable

public class EdrValidationNode
extends ObservationNode
implements Serializable

Holds EDR meta-data (gaps and statistics, product state) for a single observation.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class HiRISE.HiReport.product.ObservationNode
acquired, ccdset, cycle, id, predicted, related, status, stereo, suggestion, tagnames, tags, target, theme, thumb, title
 
Constructor Summary
EdrValidationNode(String id, String status, String title, String target, boolean stereo)
          Create a new node for a particular observation
 
Method Summary
 void add(EdrInfo edr)
          Add the info for a particular EDR
 void collectStats(boolean collectStats)
          If set to true (the default), EDR statistics will be collected
 EdrInfo getBg120()
          Convenience method to get EDR info for BG12_0
 EdrInfo getBg121()
          Convenience method to get EDR info for BG12_1
 EdrInfo getBg130()
          Convenience method to get EDR info for BG13_0
 EdrInfo getBg131()
          Convenience method to get EDR info for BG13_1
 RangeStats getBgRangeStats()
          Get the stats for the BG channels
 int getChannelCount()
          Get the total number of channels available as EDRs
 EdrInfo getEdrInfo(HiProduct edr)
          Get the info object for a particular channel
 Map<HiProduct,EdrInfo> getEdrs()
          Get the EDR info collection
 long getGaps()
          Get the total number of gapped pixels
 EdrInfo getIr100()
          Convenience method to get EDR info for IR10_0
 EdrInfo getIr101()
          Convenience method to get EDR info for IR10_1
 EdrInfo getIr110()
          Convenience method to get EDR info for IR11_0
 EdrInfo getIr111()
          Convenience method to get EDR info for IR11_1
 RangeStats getIrRangeStats()
          Get the stats for the IR channels
 int getMissingCount()
          Get the total number of missing channels
 long getPixels()
          Get the total number of (ungapped) pixels
 int getProblemCount()
          Get the total number of problems
 Map<EdrProblem,Set<HiProduct>> getProblems()
          Get the problem collection
 RangeStats getRangeStats()
          Get the stats for all channels
 EdrInfo getRed00()
          Convenience method to get EDR info for RED0_0
 EdrInfo getRed01()
          Convenience method to get EDR info for RED0_1
 EdrInfo getRed10()
          Convenience method to get EDR info for RED1_0
 EdrInfo getRed11()
          Convenience method to get EDR info for RED1_1
 EdrInfo getRed20()
          Convenience method to get EDR info for RED2_0
 EdrInfo getRed21()
          Convenience method to get EDR info for RED2_1
 EdrInfo getRed30()
          Convenience method to get EDR info for RED3_0
 EdrInfo getRed31()
          Convenience method to get EDR info for RED3_1
 EdrInfo getRed40()
          Convenience method to get EDR info for RED4_0
 EdrInfo getRed41()
          Convenience method to get EDR info for RED4_1
 EdrInfo getRed50()
          Convenience method to get EDR info for RED5_0
 EdrInfo getRed51()
          Convenience method to get EDR info for RED5_1
 EdrInfo getRed60()
          Convenience method to get EDR info for RED6_0
 EdrInfo getRed61()
          Convenience method to get EDR info for RED6_1
 EdrInfo getRed70()
          Convenience method to get EDR info for RED7_0
 EdrInfo getRed71()
          Convenience method to get EDR info for RED7_1
 EdrInfo getRed80()
          Convenience method to get EDR info for RED8_0
 EdrInfo getRed81()
          Convenience method to get EDR info for RED8_1
 EdrInfo getRed90()
          Convenience method to get EDR info for RED9_0
 EdrInfo getRed91()
          Convenience method to get EDR info for RED9_1
 RangeStats getRedRangeStats()
          Get the stats for the RED channels
 int getUnvalidatedCount()
          Get the total number of unvalidated EDRs
 int getValidatedCount()
          Get the total number of validated EDRs
 boolean getValidation()
          Return true if all EDRs have been validated
 int getWarningCount()
          Get the total number of warnings
 Map<EdrProblem,Set<HiProduct>> getWarnings()
          Get the warning collection
 void setMissing(HiProduct edr, Dimension dim)
          Set a EDR as missing
 
Methods inherited from class HiRISE.HiReport.product.ObservationNode
addRelatedId, addTag, cycle, equals, getAcquiredTime, getCommandedCcdSet, getCycle, getDerivable, getId, getPredictedTime, getProductable, getRelated, getRelatedCount, getStatus, getSuggestion, getTarget, getTheme, getThumb, getTitle, hashCode, isStereo, setSuggestion, setThumb, setTiming, status, stereo, target, theme, title
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EdrValidationNode

public EdrValidationNode(String id,
                         String status,
                         String title,
                         String target,
                         boolean stereo)
Create a new node for a particular observation

Parameters:
id - observation
status - status value
title - STL description
target - e.g. MARS
stereo - true for planned stereo
Method Detail

collectStats

public void collectStats(boolean collectStats)
If set to true (the default), EDR statistics will be collected

Parameters:
collectStats - if true, stats will be collected

add

public void add(EdrInfo edr)
Add the info for a particular EDR

Parameters:
edr - info

setMissing

public void setMissing(HiProduct edr,
                       Dimension dim)
Set a EDR as missing

Parameters:
edr - info
dim - size

getProblemCount

public int getProblemCount()
Get the total number of problems

Returns:
problem count

getWarningCount

public int getWarningCount()
Get the total number of warnings

Returns:
warning count

getValidatedCount

public int getValidatedCount()
Get the total number of validated EDRs

Returns:
validated EDR count

getUnvalidatedCount

public int getUnvalidatedCount()
Get the total number of unvalidated EDRs

Returns:
unvalidated EDR count

getRedRangeStats

public RangeStats getRedRangeStats()
Get the stats for the RED channels

Returns:
RED stats

getBgRangeStats

public RangeStats getBgRangeStats()
Get the stats for the BG channels

Returns:
BG stats

getIrRangeStats

public RangeStats getIrRangeStats()
Get the stats for the IR channels

Returns:
IR stats

getRangeStats

public RangeStats getRangeStats()
Get the stats for all channels

Returns:
stats

getValidation

public boolean getValidation()
Return true if all EDRs have been validated

Returns:
true if all validated

getProblems

public Map<EdrProblem,Set<HiProduct>> getProblems()
Get the problem collection

Returns:
map of problems to product identifier

getWarnings

public Map<EdrProblem,Set<HiProduct>> getWarnings()
Get the warning collection

Returns:
map of warning to product identifier

getEdrs

public Map<HiProduct,EdrInfo> getEdrs()
Get the EDR info collection

Returns:
map of product identifier to meta-info

getGaps

public long getGaps()
Get the total number of gapped pixels

Returns:
gapped count

getPixels

public long getPixels()
Get the total number of (ungapped) pixels

Returns:
pixel count

getChannelCount

public int getChannelCount()
Get the total number of channels available as EDRs

Returns:
channel count

getMissingCount

public int getMissingCount()
Get the total number of missing channels

Returns:
missing count

getRed00

public EdrInfo getRed00()
Convenience method to get EDR info for RED0_0

Returns:
RED0_0

getRed01

public EdrInfo getRed01()
Convenience method to get EDR info for RED0_1

Returns:
RED0_1

getRed10

public EdrInfo getRed10()
Convenience method to get EDR info for RED1_0

Returns:
RED1_0

getRed11

public EdrInfo getRed11()
Convenience method to get EDR info for RED1_1

Returns:
RED1_1

getRed20

public EdrInfo getRed20()
Convenience method to get EDR info for RED2_0

Returns:
RED2_0

getRed21

public EdrInfo getRed21()
Convenience method to get EDR info for RED2_1

Returns:
RED2_1

getRed30

public EdrInfo getRed30()
Convenience method to get EDR info for RED3_0

Returns:
RED3_0

getRed31

public EdrInfo getRed31()
Convenience method to get EDR info for RED3_1

Returns:
RED3_1

getRed40

public EdrInfo getRed40()
Convenience method to get EDR info for RED4_0

Returns:
RED4_0

getRed41

public EdrInfo getRed41()
Convenience method to get EDR info for RED4_1

Returns:
RED4_1

getRed50

public EdrInfo getRed50()
Convenience method to get EDR info for RED5_0

Returns:
RED5_0

getRed51

public EdrInfo getRed51()
Convenience method to get EDR info for RED5_1

Returns:
RED5_1

getRed60

public EdrInfo getRed60()
Convenience method to get EDR info for RED6_0

Returns:
RED6_0

getRed61

public EdrInfo getRed61()
Convenience method to get EDR info for RED6_1

Returns:
RED6_1

getRed70

public EdrInfo getRed70()
Convenience method to get EDR info for RED7_0

Returns:
RED7_0

getRed71

public EdrInfo getRed71()
Convenience method to get EDR info for RED7_1

Returns:
RED7_1

getRed80

public EdrInfo getRed80()
Convenience method to get EDR info for RED8_0

Returns:
RED8_0

getRed81

public EdrInfo getRed81()
Convenience method to get EDR info for RED8_1

Returns:
RED8_1

getRed90

public EdrInfo getRed90()
Convenience method to get EDR info for RED9_0

Returns:
RED9_0

getRed91

public EdrInfo getRed91()
Convenience method to get EDR info for RED9_1

Returns:
RED9_1

getIr100

public EdrInfo getIr100()
Convenience method to get EDR info for IR10_0

Returns:
IR10_0

getIr101

public EdrInfo getIr101()
Convenience method to get EDR info for IR10_1

Returns:
IR10_1

getIr110

public EdrInfo getIr110()
Convenience method to get EDR info for IR11_0

Returns:
IR11_0

getIr111

public EdrInfo getIr111()
Convenience method to get EDR info for IR11_1

Returns:
IR11_1

getBg120

public EdrInfo getBg120()
Convenience method to get EDR info for BG12_0

Returns:
BG12_0

getBg121

public EdrInfo getBg121()
Convenience method to get EDR info for BG12_1

Returns:
BG12_1

getBg130

public EdrInfo getBg130()
Convenience method to get EDR info for BG13_0

Returns:
BG13_0

getBg131

public EdrInfo getBg131()
Convenience method to get EDR info for BG13_1

Returns:
BG13_1

getEdrInfo

public EdrInfo getEdrInfo(HiProduct edr)
Get the info object for a particular channel

Parameters:
edr - channel ID
Returns:
info instance

HiRISE

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