edu.nrao.sss.model.project
Enum ServiceCalibrationTiming

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

public enum ServiceCalibrationTiming
extends Enum<ServiceCalibrationTiming>

Signals that indicate when a service calibration should occur in relation to a SchedulingBlock.

CVS Info:

$Revision: 161 $
$Date: 2006-12-15 11:48:34 -0700 (Fri, 15 Dec 2006) $
$Author: btruitt $

Since:
2006-12-12
Author:
David M. Harland

Enum Constant Summary
AFTER_SCHEDULING_BLOCK
          Indicates that a service calibration should be peformed after a scheduling block is executed.
BEFORE_SCHEDULING_BLOCK
          Indicates that a service calibration should be peformed before a scheduling block is executed.
EITHER_BEFORE_OR_AFTER_SCHEDULING_BLOCK
          Indicates that it is permissible to run the service calibration either before or after a scheduling block is executed.
 
Method Summary
static ServiceCalibrationTiming fromString(String text)
          Returns the service calibration timing represented by text.
static ServiceCalibrationTiming getDefault()
          Returns a default service calibration timing.
 String toString()
          Returns a text representation of this enumeration constant.
static ServiceCalibrationTiming valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ServiceCalibrationTiming[] 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

BEFORE_SCHEDULING_BLOCK

public static final ServiceCalibrationTiming BEFORE_SCHEDULING_BLOCK
Indicates that a service calibration should be peformed before a scheduling block is executed.


AFTER_SCHEDULING_BLOCK

public static final ServiceCalibrationTiming AFTER_SCHEDULING_BLOCK
Indicates that a service calibration should be peformed after a scheduling block is executed.


EITHER_BEFORE_OR_AFTER_SCHEDULING_BLOCK

public static final ServiceCalibrationTiming EITHER_BEFORE_OR_AFTER_SCHEDULING_BLOCK
Indicates that it is permissible to run the service calibration either before or after a scheduling block is executed.

Method Detail

values

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

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

valueOf

public static ServiceCalibrationTiming 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 ServiceCalibrationTiming getDefault()
Returns a default service calibration timing.

Returns:
a default service calibration timing.

toString

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

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

fromString

public static ServiceCalibrationTiming fromString(String text)
Returns the service calibration timing represented by text.

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

Parameters:
text - a text representation of a service calibration timing.
Returns:
the service calibration timing represented by text.


Copyright © 2009. All Rights Reserved.