HiRISE

HiRISE.HiVali
Class Product

java.lang.Object
  extended by HiRISE.HiVali.Product

public class Product
extends Object

Represents a Product, corresponding to a particular product_id (and hence observation) and version number.


Field Summary
static String ID
          CVS ID
 
Constructor Summary
Product(String id, int version)
          The product ID must start with an observation ID and the version number must be an integer greater than or equal to 1.
 
Method Summary
 String getID()
          Get the Product ID
 Observation getObservation()
          Get the Observation instance represented by this Product.
 int getVersion()
          Get the version number
 String toString()
          The string representation of this product, which is the product ID and version number separated by the '#' character.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ID

public static final String ID
CVS ID

See Also:
Constant Field Values
Constructor Detail

Product

public Product(String id,
               int version)
        throws IllegalArgumentException
The product ID must start with an observation ID and the version number must be an integer greater than or equal to 1.

Parameters:
id - Product ID
version - Number
Throws:
IllegalArgumentException - Invalid product id or version number.
Method Detail

getObservation

public Observation getObservation()
Get the Observation instance represented by this Product.

Returns:
Observation instance

getID

public String getID()
Get the Product ID

Returns:
Product ID

getVersion

public int getVersion()
Get the version number

Returns:
version

toString

public String toString()
The string representation of this product, which is the product ID and version number separated by the '#' character.

Overrides:
toString in class Object
Returns:
ID#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