edu.nrao.sss.model.project
Enum SchedulingConstraint

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

public enum SchedulingConstraint
extends Enum<SchedulingConstraint>

Constraints related to scheduling an observation.

A constraint of NONE means that there are no constraints related to scheduling a given object for observation. All other elements of this enumeration indicate there is some reason why the object cannot be scheduled.

Version Info:

$Revision: 1417 $
$Date: 2008-07-16 10:15:30 -0600 (Wed, 16 Jul 2008) $
$Author: dharland $ (last person to modify)

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

Enum Constant Summary
ATMOSPHERIC_PHASE
           
IONOSPHERIC_PHASE
           
NEAR_SUNRISE
           
NEAR_SUNSET
           
NONE
           
OTHER
           
PREREQUISITE
           
SCHEDULING_STATUS
           
SOLAR_SEPARATION
           
TIME
           
WEATHER
          Deprecated. 
WIND_SPEED
           
 
Method Summary
static SchedulingConstraint fromString(String text)
          Returns the scheduling constraint represented by text.
static SchedulingConstraint getDefault()
          Returns a default scheduling constraint.
 String toString()
          Returns a text representation of this enumeration constant.
static SchedulingConstraint valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SchedulingConstraint[] 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

NONE

public static final SchedulingConstraint NONE

WEATHER

@Deprecated
public static final SchedulingConstraint WEATHER
Deprecated. 

WIND_SPEED

public static final SchedulingConstraint WIND_SPEED

ATMOSPHERIC_PHASE

public static final SchedulingConstraint ATMOSPHERIC_PHASE

IONOSPHERIC_PHASE

public static final SchedulingConstraint IONOSPHERIC_PHASE

SOLAR_SEPARATION

public static final SchedulingConstraint SOLAR_SEPARATION

NEAR_SUNRISE

public static final SchedulingConstraint NEAR_SUNRISE

NEAR_SUNSET

public static final SchedulingConstraint NEAR_SUNSET

TIME

public static final SchedulingConstraint TIME

PREREQUISITE

public static final SchedulingConstraint PREREQUISITE

SCHEDULING_STATUS

public static final SchedulingConstraint SCHEDULING_STATUS

OTHER

public static final SchedulingConstraint OTHER
Method Detail

values

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

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

valueOf

public static SchedulingConstraint 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 SchedulingConstraint getDefault()
Returns a default scheduling constraint.

Returns:
a default scheduling constraint.

toString

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

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

fromString

public static SchedulingConstraint fromString(String text)
Returns the scheduling constraint represented by text.

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

Parameters:
text - a text representation of a scheduling constraint.
Returns:
the scheduling constraint represented by text.


Copyright © 2009. All Rights Reserved.