public class Product
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID
CVS ID
|
Constructor and Description |
---|
Product(java.lang.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.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getID()
Get the Product ID
|
Observation |
getObservation()
Get the Observation instance represented by this Product.
|
int |
getVersion()
Get the version number
|
java.lang.String |
toString()
The string representation of this product, which is the product ID and
version number separated by the '#' character.
|
public static final java.lang.String ID
public Product(java.lang.String id, int version) throws java.lang.IllegalArgumentException
id
- Product IDversion
- Numberjava.lang.IllegalArgumentException
- Invalid product id or version number.public Observation getObservation()
public java.lang.String getID()
public int getVersion()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona