|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<TelescopeConfiguration> edu.nrao.sss.model.resource.TelescopeConfiguration
public enum TelescopeConfiguration
A particular configuration of a telescope.
A telescope configuration is typically most appropriate for telescopes that consist of multiple antennas or mirrors, such as the VLA. More information about the VLA's configurations, and a schedule for when the array is in a given configuration, can be found at the VLA Configurations page.
(This class replaces the old VlaConfiguration
class.)
Version Info:
$Revision: 2258 $ |
$Date: 2009-04-24 13:25:38 -0600 (Fri, 24 Apr 2009) $ |
$Author: dharland $ |
Enum Constant Summary | |
---|---|
ANY
An unspecified configuration applicable to all telescopes. |
|
VLA_A
The A configuration of the Very Large Array. |
|
VLA_AtoBnA
Represents the VLA as it is being moved from the A to the B/A Hybrid configuration. |
|
VLA_B
The B configuration of the Very Large Array. |
|
VLA_BnA
A hybrid of the VLA B and A configurations. |
|
VLA_BnAtoB
Represents the VLA as it is being moved from the B/A Hybrid to the B configuration. |
|
VLA_BtoCnB
Represents the VLA as it is being moved from the B to the C/B Hybrid configuration. |
|
VLA_C
The C configuration of the Very Large Array. |
|
VLA_CnB
A hybrid of the VLA C and B configurations. |
|
VLA_CnBtoC
Represents the VLA as it is being moved from the C/B Hybrid to the C configuration. |
|
VLA_CtoDnC
Represents the VLA as it is being moved from the C to the D/C Hybrid configuration. |
|
VLA_D
The D configuration of the Very Large Array. |
|
VLA_DnC
A hybrid of the VLA D and C configurations. |
|
VLA_DnCtoD
Represents the VLA as it is being moved from the D/C Hybrid to the D configuration. |
|
VLA_DtoA
Represents the VLA as it is being moved from the D to the A configuration. |
Method Summary | |
---|---|
static TelescopeConfiguration |
fromString(String text)
Returns the telescope configuration represented by text . |
String |
getCode()
Returns a short code for this configuration. |
static TelescopeConfiguration |
getDefault()
Returns a default telescope configuration. |
static Set<TelescopeConfiguration> |
getElementsFor(TelescopeType telescope)
Returns the subset of elements that are appropriate for the given telescope. |
String |
getHistoricalCode()
Returns another code for this configuration. |
boolean |
isCompatibleWith(TelescopeConfiguration other)
Returns true if this configuration is compatible with other . |
String |
toString()
Returns a text representation of this configuration. |
static TelescopeConfiguration |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static TelescopeConfiguration[] |
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 TelescopeConfiguration VLA_A
This is the configuration where the antennas are most widely separated. Each arm of the array is 21 kilometers long.
public static final TelescopeConfiguration VLA_B
This is the second-most widely separated configuration of the array.
public static final TelescopeConfiguration VLA_C
This is the second-most tightly spaced configuration of the array.
public static final TelescopeConfiguration VLA_D
This is the configuration where the antennas are most tightly spaced. Each antenna is within 0.6 kilometers of the center.
public static final TelescopeConfiguration VLA_BnA
In this configuration the east and west arms are in the B configuration, but the north arm is still in the A configuration.
public static final TelescopeConfiguration VLA_CnB
In this configuration the east and west arms are in the C configuration, but the north arm is still in the B configuration.
public static final TelescopeConfiguration VLA_DnC
In this configuration the east and west arms are in the D configuration, but the north arm is still in the C configuration.
public static final TelescopeConfiguration VLA_AtoBnA
public static final TelescopeConfiguration VLA_BnAtoB
public static final TelescopeConfiguration VLA_BtoCnB
public static final TelescopeConfiguration VLA_CnBtoC
public static final TelescopeConfiguration VLA_CtoDnC
public static final TelescopeConfiguration VLA_DnCtoD
public static final TelescopeConfiguration VLA_DtoA
public static final TelescopeConfiguration ANY
Clients use the ANY configuration when they are not concerned with the particular arrangement of the telescope. This element is also used to implement the Null Object Pattern. In situations where a method might be tempted to return null, this element is returned instead.
Method Detail |
---|
public static TelescopeConfiguration[] values()
for (TelescopeConfiguration c : TelescopeConfiguration.values()) System.out.println(c);
public static TelescopeConfiguration 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 toString()
toString
in class Enum<TelescopeConfiguration>
public String getCode()
Examples: "A", "A->B/A" (for A to B/A hybrid), "B/A" (for B-north-A hybrid).
getHistoricalCode()
public String getHistoricalCode()
code
for this configuration.
public boolean isCompatibleWith(TelescopeConfiguration other)
other
.
The best way to understand compatibility is to imagine that the telescope
is currently in the other
configuration and that some specification
says we may only use the telescope if it is in this
configuration.
In general, two configurations are compatible if either they are the same
configuration or if one of them is the ANY
configuration.
other
- the configuration to be tested for compatibility.
other
.public static TelescopeConfiguration getDefault()
public static TelescopeConfiguration fromString(String text)
text
.
For details about the transformation, see
EnumerationUtility.enumFromString(Class, String)
.
text
- a text representation of a telescope configuration.
text
.public static Set<TelescopeConfiguration> getElementsFor(TelescopeType telescope)
telescope
- the telescope for which a set of configurations
is desired.
telescope
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |