edu.nrao.sss.model.resource
Enum ObservingMode

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

public enum ObservingMode
extends Enum<ObservingMode>

Mode of observing.

Version Info:

$Revision: 408 $
$Date: 2007-03-01 08:20:30 -0700 (Thu, 01 Mar 2007) $
$Author: dharland $

Since:
2006-09-08
Author:
David M. Harland

Enum Constant Summary
CONTINUUM
           
PULSAR
           
SPECTRAL_LINE
           
 
Method Summary
static ObservingMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ObservingMode[] 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

CONTINUUM

public static final ObservingMode CONTINUUM

SPECTRAL_LINE

public static final ObservingMode SPECTRAL_LINE

PULSAR

public static final ObservingMode PULSAR
Method Detail

values

public static ObservingMode[] 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 (ObservingMode c : ObservingMode.values())
    System.out.println(c);

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

valueOf

public static ObservingMode 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


Copyright © 2009. All Rights Reserved.