edu.nrao.sss.model.resource
Enum BackendType

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

public enum BackendType
extends Enum<BackendType>

Types of telescope backends.

Version Info:

$Revision: 1175 $
$Date: 2008-03-20 09:42:39 -0600 (Thu, 20 Mar 2008) $
$Author: dharland $ (last person to modify)

Since:
2008-03-19
Author:
David M. Harland

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

CORRELATOR

public static final BackendType CORRELATOR

SPECTROMETER

public static final BackendType SPECTROMETER
Method Detail

values

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

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

valueOf

public static BackendType 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.