edu.nrao.sss.model.proposal
Enum ObservingType

java.lang.Object
  extended by java.lang.Enum<ObservingType>
      extended by edu.nrao.sss.model.proposal.ObservingType
All Implemented Interfaces:
Serializable, Comparable<ObservingType>

public enum ObservingType
extends Enum<ObservingType>

Placeholder for time when we integrate proposal work. TODO Add comments TODO Write JUnit class

Since:
2006-03-09
Version:
1.1

Enum Constant Summary
CONTINUUM
           
GRID_MAPPING
           
HIGH_TIME_RESOLUTION
           
MONITORING
           
ON_THE_FLY
           
OTHER
           
PLANETARY_RADAR
           
POLARIMETRY
           
PULSAR
           
SINGLE_POINTING
           
SOLAR
           
SPECTROSCOPY
           
TRIGGERED_TRANSIENT
           
 
Method Summary
static ObservingType fromString(String text)
          Returns the observing type represented by text.
static ObservingType getDefault()
          Returns a default observing type.
 String toString()
          Returns a text representation of this enumeration constant.
static ObservingType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ObservingType[] 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

CONTINUUM

public static final ObservingType CONTINUUM

PULSAR

public static final ObservingType PULSAR

POLARIMETRY

public static final ObservingType POLARIMETRY

ON_THE_FLY

public static final ObservingType ON_THE_FLY

SPECTROSCOPY

public static final ObservingType SPECTROSCOPY

PLANETARY_RADAR

public static final ObservingType PLANETARY_RADAR

SINGLE_POINTING

public static final ObservingType SINGLE_POINTING

MONITORING

public static final ObservingType MONITORING

SOLAR

public static final ObservingType SOLAR

HIGH_TIME_RESOLUTION

public static final ObservingType HIGH_TIME_RESOLUTION

GRID_MAPPING

public static final ObservingType GRID_MAPPING

TRIGGERED_TRANSIENT

public static final ObservingType TRIGGERED_TRANSIENT

OTHER

public static final ObservingType OTHER
Method Detail

values

public static ObservingType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ObservingType c : ObservingType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ObservingType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getDefault

public static ObservingType getDefault()
Returns a default observing type.

Returns:
a default observing type.

toString

public String toString()
Returns a text representation of this enumeration constant.

Overrides:
toString in class Enum<ObservingType>
Returns:
a text representation of this enumeration constant.

fromString

public static ObservingType fromString(String text)
Returns the observing type represented by text.

For details about the transformation, see EnumerationUtility.enumFromString(Class, String).

Parameters:
text - a text representation of an observing type.
Returns:
the observing type represented by text.


Copyright © 2009. All Rights Reserved.