|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<BandwidthCode> edu.nrao.sss.model.resource.vla.BandwidthCode
public enum BandwidthCode
Enum Constant Summary | |
---|---|
EIGHT
|
|
FIVE
|
|
FOUR
|
|
NINE
|
|
ONE
|
|
SEVEN
|
|
SIX
|
|
THREE
|
|
TWO
|
|
ZERO
|
Method Summary | |
---|---|
Frequency |
getBandwidthForContinuum()
Returns the bandwidth associated with this code in continuum mode. |
Frequency |
getBandwidthForSpectralLine()
Returns the bandwidth associated with this code in spectral line mode. |
Frequency |
getBandwidthForSpectralLine(IFMode ifMode,
Set<ProcessingType> spectralLineProcessing)
Returns the bandwidth for this code and the given IF mode and processing options. |
Frequency |
getBandwidthNominal()
|
int |
getChannels(IFMode ifMode)
Returns the maximum number of spectral channels that can be created using this band code and the given IF mode. |
int |
getChannels(IFMode ifMode,
Set<ProcessingType> spectralLineProcessing)
Returns the maximum number of spectral channels that can be created using this band code and the given IF mode and processing options. |
int |
getCodeNumber()
Returns an integer representation of this band code. |
static List<BandwidthCode> |
getContinuumCodes()
Returns the subset of codes that may be used for continuum observations. |
int |
getLags(IFMode ifMode)
Returns the number of lags associated with this bandwith code and IF mode. |
Frequency |
getResolution(IFMode ifMode)
Returns the best spectral resolution that can be obtained using this band code and the given IF mode. |
Frequency |
getResolution(IFMode ifMode,
Set<ProcessingType> spectralLineProcessing)
Returns the best spectral resolution that can be obtained using this band code and the given IF mode and processing options. |
static List<BandwidthCode> |
getSpectralLineCodes()
Returns the subset of codes that may be used for spectral line observations. |
TimeDuration |
getTimeResolution(IFMode ifMode,
Set<ProcessingType> spectralLineProcessing)
Returns the time resolution that can be obtained using this band code and the given IF mode and processing options. |
boolean |
isValidForContinuum()
Returns true if this bandwidth code is valid for continuum observations. |
boolean |
isValidForSpectralLine()
Returns true if this bandwidth code is valid for spectral line observations. |
static BandwidthCode |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static BandwidthCode[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final BandwidthCode ZERO
public static final BandwidthCode ONE
public static final BandwidthCode TWO
public static final BandwidthCode THREE
public static final BandwidthCode FOUR
public static final BandwidthCode FIVE
public static final BandwidthCode SIX
public static final BandwidthCode SEVEN
public static final BandwidthCode EIGHT
public static final BandwidthCode NINE
Method Detail |
---|
public static BandwidthCode[] values()
for (BandwidthCode c : BandwidthCode.values()) System.out.println(c);
public static BandwidthCode valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static List<BandwidthCode> getContinuumCodes()
public static List<BandwidthCode> getSpectralLineCodes()
public int getCodeNumber()
public boolean isValidForContinuum()
public boolean isValidForSpectralLine()
public Frequency getBandwidthNominal()
public Frequency getBandwidthForContinuum()
public Frequency getBandwidthForSpectralLine(IFMode ifMode, Set<ProcessingType> spectralLineProcessing)
ifMode
- the IF mode for which the bandwidth is desired.
Normally the IF mode does not influence bandwidth, and this parameter
may be null. However, when channel-zero processing is requested,
we need to know the width of a single channel, and the IF mode is
required for that. (See getResolution(IFMode, Set)
.)spectralLineProcessing
- a list of the spectral line processing options that will be used.
This parameter may be null.
public int getChannels(IFMode ifMode, Set<ProcessingType> spectralLineProcessing)
ifMode
- the IF mode for which the number of channels is desired.spectralLineProcessing
- a list of the spectral line processing options that will be used.
This parameter may be null.
public Frequency getResolution(IFMode ifMode, Set<ProcessingType> spectralLineProcessing)
ifMode
- the IF mode for which the resolution is desired.spectralLineProcessing
- a list of the spectral line processing options that will be used.
This parameter may be null.
public TimeDuration getTimeResolution(IFMode ifMode, Set<ProcessingType> spectralLineProcessing)
ifMode
- the IF mode for which the resolution is desired.spectralLineProcessing
- a list of the spectral line processing options that will be used.
This parameter may be null.
public Frequency getBandwidthForSpectralLine()
public int getChannels(IFMode ifMode)
ifMode
- the IF mode for which the number of channels is desired.
public Frequency getResolution(IFMode ifMode)
ifMode
- the IF mode for which the resolution is desired.
public int getLags(IFMode ifMode)
ProcessingType.LAG
spectral line processing option.
ifMode
- the IF mode for which the number of lags is desired.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |