HiRISE

HiRISE.HiReport.product
Class ProductFile

java.lang.Object
  extended by HiRISE.HiReport.product.ProductFile
Direct Known Subclasses:
ProductImageFile

public class ProductFile
extends Object

Represents an individual file for a particular product


Field Summary
protected  Date creationTime
          Date product was created
protected  String id
          Product ID (unique to product group)
static String ID
          CVS ID
protected  String path
          Path to the image
protected  HiProduct product
          "Class" of product
protected  boolean proffered
          True if publicly released
protected  String ref
          Refers to a related product ID
protected  long size
          File size in bytes
protected  ProductFileType type
          The type of this file
protected  int version
          Version number
 
Constructor Summary
ProductFile(String id, HiProduct product, ProductFileType type, String path, int version, boolean proffered)
          Create a new image product with empty meta data.
ProductFile(String id, HiProduct product, String ref, ProductFileType type, String path, int version, boolean proffered)
          Create a new image product with empty meta data.
 
Method Summary
 Date getCreationTime()
          Get the file creation time value
 String getId()
          Get the product ID string (not unique)
 String getPath()
          Get the path
 HiProduct getProduct()
          Get the product (unique)
 boolean getProffered()
          Return true if this product file is proffered
 long getSize()
          Get the size in bytes
 ProductFileType getType()
          Return the type of this file
 int getVersion()
          Get the version number
 void setCreationTime(Date creationTime)
          Set the file creation time value
 void setPath(String path)
          Set the path (disk location)
 void setSize(long size)
          Set the size in bytes
 String toString()
           
 
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

size

protected transient long size
File size in bytes


creationTime

protected transient Date creationTime
Date product was created


path

protected transient String path
Path to the image


type

protected transient ProductFileType type
The type of this file


id

protected transient String id
Product ID (unique to product group)


product

protected transient HiProduct product
"Class" of product


version

protected transient int version
Version number


proffered

protected transient boolean proffered
True if publicly released


ref

protected transient String ref
Refers to a related product ID

Constructor Detail

ProductFile

public ProductFile(String id,
                   HiProduct product,
                   ProductFileType type,
                   String path,
                   int version,
                   boolean proffered)
Create a new image product with empty meta data.

Parameters:
id - The product ID
product - Unique ID
type - file type
path - location
version - version ID
proffered - true if released to PDS

ProductFile

public ProductFile(String id,
                   HiProduct product,
                   String ref,
                   ProductFileType type,
                   String path,
                   int version,
                   boolean proffered)
Create a new image product with empty meta data.

Parameters:
id - The product ID
product - Unique ID
ref - Reference product ID
type - file type
path - location
version - version ID
proffered - true if released to PDS
Method Detail

getId

public String getId()
Get the product ID string (not unique)

Returns:
ID

getProduct

public HiProduct getProduct()
Get the product (unique)

Returns:
product

toString

public String toString()
Overrides:
toString in class Object

getVersion

public int getVersion()
Get the version number

Returns:
version

setPath

public void setPath(String path)
Set the path (disk location)

Parameters:
path - file path

getPath

public String getPath()
Get the path

Returns:
path

getSize

public long getSize()
Get the size in bytes

Returns:
bytes

setSize

public void setSize(long size)
Set the size in bytes

Parameters:
size - bytes

getCreationTime

public Date getCreationTime()
Get the file creation time value

Returns:
time of file creation

setCreationTime

public void setCreationTime(Date creationTime)
Set the file creation time value

Parameters:
creationTime - time of file creation

getType

public ProductFileType getType()
Return the type of this file

Returns:
the type

getProffered

public boolean getProffered()
Return true if this product file is proffered

Returns:
true if proffered

HiRISE

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