HiRISE

HiRISE.HiReport.product
Class ProductGroupNode

java.lang.Object
  extended by HiRISE.HiReport.product.ProductGroupNode

public class ProductGroupNode
extends Object

Branch node for product groups (EDR, RDR, etc) that contains a node for each distinct version number of all product version numbers that exist for that group. For example, the RDR node for a particular observation might contain child nodes for 2 and 3 (i.e. version 1 has been deleted).


Constructor Summary
ProductGroupNode(Set<HiProduct> products)
          Create a new node for a set of products.
 
Method Summary
 ProductVersionNode addProductVersion(HiProduct product, int version)
          Add a product
 int getCount()
          Get the number of versions
 int getMaxVersion()
           
 int getMinVersion()
           
 Map<Integer,ProductVersionNode> getVersions()
          Get the child nodes (key and value)
 void setIgnorable(HiProduct... ignorable)
          Set the state of particular products as ignorable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProductGroupNode

public ProductGroupNode(Set<HiProduct> products)
Create a new node for a set of products.

Parameters:
products - The products in this group
Method Detail

setIgnorable

public void setIgnorable(HiProduct... ignorable)
Set the state of particular products as ignorable

Parameters:
ignorable - products to ignore

addProductVersion

public ProductVersionNode addProductVersion(HiProduct product,
                                            int version)
Add a product

Parameters:
product - the product
version - the version
Returns:
the parent node

getMinVersion

public int getMinVersion()
Returns:
the minVersion

getMaxVersion

public int getMaxVersion()
Returns:
the maxVersion

getVersions

public Map<Integer,ProductVersionNode> getVersions()
Get the child nodes (key and value)

Returns:
child nodes, one per version number

getCount

public int getCount()
Get the number of versions

Returns:
count of distinct versions

HiRISE

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