|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<TelescopeType> edu.nrao.sss.model.resource.TelescopeType
public enum TelescopeType
An enumeration of the NRAO telescopes.
Version Info:
$Revision: 1598 $ |
$Date: 2008-10-07 10:25:51 -0600 (Tue, 07 Oct 2008) $ |
$Author: dharland $ (last person to modify) |
Enum Constant Summary | |
---|---|
ALMA
The Atacama Large Millimeter Array. |
|
EVLA
The Expanded Very Large Array. |
|
GBT
The Greenbank Telescope. |
|
OTHER
A telescope other than those listed herein. |
|
VLA
The Very Large Array. |
|
VLBA
The Very Long Baseline Array. |
Method Summary | |
---|---|
LinearVelocity |
calcVelocityRelativeTo(Source source,
Date dateTime)
Returns the velocity of this telescope toward or away from an object in space at the given point in time. |
static TelescopeType |
fromString(String text)
Returns the telescope type represented by text . |
List<CorrelatorName> |
getBackendTypes()
Returns a list of the backend processors available on this telescope. |
static TelescopeType |
getDefault()
Returns a default telescope type. |
String |
getLegacyAbbreviation()
Returns the historical abbreviation for this telescope. |
EarthPosition |
getLocation()
Returns a copy of the location of this telescope. |
String |
getLongName()
Returns a long name for this telescope. |
Set<ReceiverBand> |
getReceivers()
Returns the receiver bands that this type of telescope has. |
Map<ReceiverBand,Map<String,Frequency>> |
getTuningPlan()
Returns a default tuning plan for the local oscillators of this telescope. |
List<Set<ReceiverBand>> |
getValidReceiverCombinations()
Returns a list of all the combinations of two or more receivers that may be used by this telescope simultaneously. |
AntennaElectronics |
makeElectronics()
Creates and returns antenna electronics for this telescope. |
ReceiverBand |
selectBestReceiverFor(FrequencyRange targetRange)
Returns the best receiver to use for the given range of sky frequencies. |
List<ReceiverSelection> |
selectReceivers(ObservingMode mode,
ResourceSpecification specs)
Returns a list of one or more selections that satisfy the given portion of the given specs. |
List<ReceiverSelection> |
selectReceivers(PulsarSpecification specs)
Returns a list of one or more selections that satisfy the given specs. |
List<ReceiverSelection> |
selectReceivers(ResourceSpecification specs)
Returns a list of one or more selections that satisfy the given specs. |
List<ReceiverSelection> |
selectReceivers(SkyFrequencySpecification specs)
Returns a list of one or more selections that satisfy the given specs. |
List<ReceiverSelection> |
selectReceivers(SpectralLineSpecification specs)
Returns a list of one or more selections that satisfy the given specs. |
void |
setProvider(ReceiverProvider dummy)
Does nothing; this telescope will always be its own provider. |
void |
setReceiverSelectorType(Class<? extends ReceiverSelector> type)
Sets the class to use as a receiver selector. |
void |
setReceiverSelectorType(String fullClassName)
Sets the class to use as a receiver selector. |
String |
toString()
|
static TelescopeType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static TelescopeType[] |
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, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final TelescopeType GBT
public static final TelescopeType VLA
public static final TelescopeType VLBA
public static final TelescopeType EVLA
public static final TelescopeType ALMA
public static final TelescopeType OTHER
Method Detail |
---|
public static TelescopeType[] values()
for (TelescopeType c : TelescopeType.values()) System.out.println(c);
public static TelescopeType 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 String getLegacyAbbreviation()
public String getLongName()
public EarthPosition getLocation()
public Set<ReceiverBand> getReceivers()
getReceivers
in interface ReceiverProvider
public List<Set<ReceiverBand>> getValidReceiverCombinations()
Note that the returned list, and the sets contained therein, are copies of those held by this telescope, so changes made to them will not be reflected in this object.
getValidReceiverCombinations
in interface ReceiverProvider
public Map<ReceiverBand,Map<String,Frequency>> getTuningPlan()
The returned map has a ReceiverBand
as its key and another
map as its value. This second map has as its key the name of
a local oscillator, and its value is the frequency to which that
LO should be tuned.
public AntennaElectronics makeElectronics()
null-like
electronics will be built and returned.
public List<CorrelatorName> getBackendTypes()
antenna
electronics
.
public LinearVelocity calcVelocityRelativeTo(Source source, Date dateTime) throws CoordinateConversionException
source
- an object in space. The radial velocity of this object is
calculated relative to this telescope.dateTime
- the point in time at which the velocity is calculated.
CoordinateConversionException
- if the position of the source cannot be converted to
an equatorial RA / Dec position.public static TelescopeType getDefault()
public String toString()
toString
in class Enum<TelescopeType>
public static TelescopeType fromString(String text)
text
.
For details about the transformation, see
EnumerationUtility.enumFromString(Class, String)
.
text
- a text representation of a telescope type.
text
.public void setReceiverSelectorType(String fullClassName)
fullClassName
- the fully-qualified name of a class that implements
ReceiverSelector
.public void setReceiverSelectorType(Class<? extends ReceiverSelector> type)
type
- a class the implements ReceiverSelector
. If this
value is null a default class will be used.public void setProvider(ReceiverProvider dummy)
setProvider
in interface ReceiverSelector
dummy
- a provider of receivers.public List<ReceiverSelection> selectReceivers(ResourceSpecification specs)
ReceiverSelector
specs
.
selectReceivers
in interface ReceiverSelector
specs
- a resource specification, expressed in terms of science,
as opposed to instrumentation.
public List<ReceiverSelection> selectReceivers(SkyFrequencySpecification specs)
ReceiverSelector
specs
.
selectReceivers
in interface ReceiverSelector
specs
- a resource specification, expressed in terms of science,
as opposed to instrumentation.
public List<ReceiverSelection> selectReceivers(SpectralLineSpecification specs)
ReceiverSelector
specs
.
selectReceivers
in interface ReceiverSelector
specs
- a resource specification, expressed in terms of science,
as opposed to instrumentation.
public List<ReceiverSelection> selectReceivers(PulsarSpecification specs)
ReceiverSelector
specs
.
selectReceivers
in interface ReceiverSelector
specs
- a resource specification, expressed in terms of science,
as opposed to instrumentation.
public List<ReceiverSelection> selectReceivers(ObservingMode mode, ResourceSpecification specs)
ReceiverSelector
specs
.
The mode
parameter is used to ignore the portions of
specs
that are of different modes. For example, calling
mySelector.selectReceivers(ObservingMode.SPECTRAL_LINE, mySpecs)
will cause this selector to consider only the spectral line specifications.
Note that this is a little different than calling
mySelector.selectReceivers(mySpecs.getSpectralLineSpecs().get(i))
because all the spectral line specifications in specs
will
be considered by this method.
selectReceivers
in interface ReceiverSelector
mode
- the portion of specs
to which this method will
limit its attention.specs
- a resource specification, expressed in terms of science,
as opposed to instrumentation.
public ReceiverBand selectBestReceiverFor(FrequencyRange targetRange)
ReceiverSelector
This method returns a single receiver, even if multiple receivers cover the target range. If one receiver covers more of the target range than the others, it is the receiver returned. If multiple receivers cover the range equally well, the receiver returned is up to the implementing class. If no receiver overlaps the target range, the receiver that has the smallest distance between itself and the target range is returned. Note that this means the returned receiver may not be useful for the target it range at all, but is merely the best of the not-so-useful receivers.
This method may return null if any one or more of the following is true:
selectBestReceiverFor
in interface ReceiverSelector
targetRange
- a sky frequency range for which the best receiver is sought.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |