public class BandInfo
extends java.lang.Object
Constructor and Description |
---|
BandInfo()
Default constructor
|
BandInfo(BandInfo that)
Copy constructor
|
BandInfo(int sensor,
int band)
Create a new BandInfo
|
BandInfo(int sensor,
int band,
java.lang.String description)
Create a new BandInfo
|
BandInfo(int sensor,
int band,
java.lang.String description,
java.util.List units)
Create a new BandInfo
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Check for equality
|
static int |
findIndexByName(java.lang.String desc,
java.util.List<BandInfo> bandinfos)
Find the index in the list of the first band with the band description.
|
static int |
findIndexByNumber(int band,
java.util.List<BandInfo> bandinfos)
Find the index in the list of the first band with the band number.
|
java.lang.String |
getBandDescription()
Get the description for the band
|
int |
getBandNumber()
Get the band number for this BandInfo
|
java.util.List |
getCalibrationUnits()
Cet the calibration units for this BandInfo
|
java.lang.String |
getPreferredUnit()
Cet the preferred calibration units for this BandInfo
|
int |
getSensor()
Get the satellite sensor number for this BandInfo
|
int |
hashCode()
Get the Hashcode for this object.
|
void |
setBandDescription(java.lang.String description)
Set the band description for this BandInfo
|
void |
setBandNumber(int band)
Set the band number for this BandInfo
|
void |
setCalibrationUnits(java.util.List units)
Set the calibration units for this BandInfo
|
void |
setPreferredUnit(java.lang.String unit)
Set the preferred calibration unit for this BandInfo
|
void |
setSensor(int sensor)
Set the satellite sensor number for this BandInfo
|
java.lang.String |
toString()
Get a String Representation of this object
|
public BandInfo()
public BandInfo(int sensor, int band)
sensor
- satellite sensor numberband
- band numberpublic BandInfo(int sensor, int band, java.lang.String description)
sensor
- satellite sensor numberband
- band numberdescription
- description of bandpublic BandInfo(int sensor, int band, java.lang.String description, java.util.List units)
sensor
- satellite sensor numberband
- band numberdescription
- description of bandunits
- available calibration unitspublic BandInfo(BandInfo that)
that
- other BandInfopublic void setBandNumber(int band)
band
- band numberpublic int getBandNumber()
public void setBandDescription(java.lang.String description)
description
- band descriptionpublic java.lang.String getBandDescription()
public void setSensor(int sensor)
sensor
- sensor numberpublic int getSensor()
public void setCalibrationUnits(java.util.List units)
units
- list of calibration unitspublic java.util.List getCalibrationUnits()
public void setPreferredUnit(java.lang.String unit)
unit
- unit idpublic java.lang.String getPreferredUnit()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- object to checkpublic int hashCode()
hashCode
in class java.lang.Object
public static int findIndexByNumber(int band, java.util.List<BandInfo> bandinfos)
band
- band numberbandinfos
- list of BandInfospublic static int findIndexByName(java.lang.String desc, java.util.List<BandInfo> bandinfos)
desc
- band namebandinfos
- list of BandInfos