Modifier and Type | Field and Description |
---|---|
protected int |
CCD
CCD Number
|
protected static java.util.List<java.lang.String> |
CCD_NAMES
List of CCD Names, indexed by CPMM_Number
|
protected java.lang.String |
ccdName
CCD Name, defined in Instrument class
|
protected int |
cpmmNumber
The CPMM number
|
protected java.lang.String |
id
Our product id String
|
static java.lang.String |
ID
CVS ID
|
static java.util.regex.Pattern |
idPattern
Pattern to match Channel IDs
|
protected Observation |
observation
Reference to parent observation
|
Constructor and Description |
---|
CCD(Observation observation,
int cpmmNumber)
Construct a new CCD for the given Observation and CPMM number.
|
CCD(Observation observation,
java.lang.String ccdName)
Construct a new CCD for the given Observation and CCD name.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clone this CCD
|
int |
compareTo(CCD CCD) |
boolean |
equals(java.lang.Object object)
Compare this CCD to another for equality.
|
int |
getCpmmNumber()
Get the CPMM number
|
java.lang.String |
getFilterName()
Get the filter name used for this CCD
|
java.lang.String |
getName()
Get the name of this CCD, e.g.
|
Observation |
getObservation()
Get the observation that this CCD is a part of.
|
int |
hashCode()
Get a hash code for this CCD
|
static CCD |
parse(java.lang.String id)
Construct a new CCD
|
java.lang.String |
toString()
Get the String form of the CCD, includes the Observation ID.
|
public static final java.lang.String ID
protected static java.util.List<java.lang.String> CCD_NAMES
protected Observation observation
protected int cpmmNumber
protected java.lang.String ccdName
protected int CCD
protected java.lang.String id
public static final java.util.regex.Pattern idPattern
public CCD(Observation observation, int cpmmNumber) throws Invalid_Argument_Exception
observation
- The observationcpmmNumber
- Index into the Instrument.CCD_NAMES arrayInvalid_Argument_Exception
- Bad CPMM numberpublic CCD(Observation observation, java.lang.String ccdName) throws Invalid_Argument_Exception
observation
- Observation instanceccdName
- Name of CCDInvalid_Argument_Exception
- Bad CCD namepublic static CCD parse(java.lang.String id) throws Invalid_Argument_Exception
id
- String containing CCD idInvalid_Argument_Exception
- Bad CCD id inputpublic java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
public Observation getObservation()
public final java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(CCD CCD)
compareTo
in interface java.lang.Comparable<CCD>
Comparable
public int getCpmmNumber()
public java.lang.String getFilterName()
Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona