|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<ScanTimeType> edu.nrao.sss.model.project.scan.ScanTimeType
public enum ScanTimeType
An enumeration of the different kinds of time associated with a
Scan
. An observer may specify either a duration or a
point in time for a scan. If duration is chosen, the observer
may then choose either a total duration or the amount of time to
spend on-source.
If time is chosen, the observer may then
choose either a start or stop time. For both durations and times
a choice must also be made between expressing time in sidereal unit
or standard units.
Version Info:
$Revision: 2142 $ |
$Date: 2009-03-30 13:29:56 -0600 (Mon, 30 Mar 2009) $ |
$Author: btruitt $ |
Enum Constant Summary | |
---|---|
DURATION_SIDEREAL
The total amount of time spent on a scan, in sidereal units. |
|
DURATION_UT
The total amount of time spent on a scan, in SI units. |
|
ON_SOURCE_SIDEREAL
The amount of time spent observing a source, in sidereal units. |
|
ON_SOURCE_UT
The amount of time spent observing a source, in SI units. |
|
START_LST
The local sidereal time at which a scan begins. |
|
START_UT
The date and time at which a scan begins. |
|
STOP_LST
The local sidereal time at which a scan concludes. |
|
STOP_UT
The date and time at which a scan concludes. |
Method Summary | |
---|---|
static ScanTimeType |
fromString(String text)
Returns the scan time type represented by text . |
static ScanTimeType |
getDefault()
Returns the time type to use as a default. |
boolean |
isDuration()
Returns true if this time type is a duration (as opposed to a point in time). |
boolean |
isOnSourceDuration()
Returns true if this time type is a time-on-source duration. |
boolean |
isPointInTime()
Returns true if this time type is a point in time (as opposed to a duration). |
boolean |
isSiderealTime()
Returns true if this time type is expressed in sidereal units. |
boolean |
isStartTime()
Returns true if this time type is a start time. |
boolean |
isStopTime()
Returns true if this time type is a stop time. |
boolean |
isTotalDuration()
Returns true if this time type is a total duration. |
boolean |
isUniversalTime()
Returns true if this time type is expressed in SI units. |
static List<ScanTimeType> |
siderealSubset()
Returns the elements of this enumeration that are based on sidereal time. |
String |
toString()
Returns a text representation of this enumeration constant. |
static List<ScanTimeType> |
utSubset()
Returns the elements of this enumeration that are based on universal time. |
static ScanTimeType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ScanTimeType[] |
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 ScanTimeType ON_SOURCE_SIDEREAL
public static final ScanTimeType DURATION_SIDEREAL
public static final ScanTimeType START_LST
public static final ScanTimeType STOP_LST
public static final ScanTimeType ON_SOURCE_UT
public static final ScanTimeType DURATION_UT
public static final ScanTimeType START_UT
The date/time is expressed in conventional units. Though the "UT" suffix may seem to imply that the Greenwich time zone be used, that is not the case. Any time zone may be used; the time merely needs to be in SI units, not sidereal units.
public static final ScanTimeType STOP_UT
The date/time is expressed in conventional units. Though the "UT" suffix may seem to imply that the Greenwich time zone be used, that is not the case. Any time zone may be used; the time merely needs to be in SI units, not sidereal units.
Method Detail |
---|
public static ScanTimeType[] values()
for (ScanTimeType c : ScanTimeType.values()) System.out.println(c);
public static ScanTimeType 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 ScanTimeType getDefault()
public boolean isDuration()
public boolean isPointInTime()
public boolean isOnSourceDuration()
public boolean isTotalDuration()
public boolean isStartTime()
public boolean isStopTime()
public boolean isUniversalTime()
public boolean isSiderealTime()
public String toString()
toString
in class Enum<ScanTimeType>
public static ScanTimeType fromString(String text)
text
.
For details about the transformation, see
EnumerationUtility.enumFromString(Class, String)
.
text
- a text representation of a scan time type.
text
.public static List<ScanTimeType> siderealSubset()
public static List<ScanTimeType> utSubset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |