edu.nrao.sss.model.project
Enum ProjectType

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

public enum ProjectType
extends Enum<ProjectType>

An enumeration of project types.

The list of project types is based on an email from Barry Clark to evla-sw-discuss@nrao.edu on 2005-11-17. It was then modified based on an email reply from B.Clark to D.Harland on 2008-01-10 regarding the overlap between ProjectType and SchedulingType.

Version Info:

$Revision: 1233 $
$Date: 2008-04-22 09:25:07 -0600 (Tue, 22 Apr 2008) $
$Author: dharland $

Since:
2006-03-03

Enum Constant Summary
ADJUST
          Denotes an adjustable project.
LARGE
          Denotes a large project.
MULTICONFIG
          Denotes a project that uses multiple array configurations.
SIMPLE
          Denotes a simple project.
 
Method Summary
static ProjectType fromString(String text)
          Returns the project type represented by text.
static ProjectType getDefault()
          Returns a default project type.
 String toString()
          Returns a text representation of this enumeration constant.
static ProjectType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ProjectType[] 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

SIMPLE

public static final ProjectType SIMPLE
Denotes a simple project.


LARGE

public static final ProjectType LARGE
Denotes a large project.
Find permitted scheduling density. Priority becomes low if recent observations at the current LST total more than permitted density. (So other projects can get a little time spread through the configuration.)
-- Barry Clark, from email to D.Harland, 2008-Jan-10


ADJUST

public static final ProjectType ADJUST
Denotes an adjustable project.
Most projects will, in the scheduling process, receive an extra priority boost to finish up allocated time. ADJUSTable ones do not. (All time is welcome, and is useful without the whole lot.)
-- Barry Clark, from email to D.Harland, 2008-Jan-10


MULTICONFIG

public static final ProjectType MULTICONFIG
Denotes a project that uses multiple array configurations.
If scheduled observing time in previous configurations is greater than requested for this configuration, increase scheduling priority to get it finished.
-- Barry Clark, from email to D.Harland, 2008-Jan-10

Method Detail

values

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

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

valueOf

public static ProjectType 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 ProjectType getDefault()
Returns a default project type.

Returns:
a default project type.

toString

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

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

fromString

public static ProjectType fromString(String text)
Returns the project type represented by text.

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

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


Copyright © 2009. All Rights Reserved.