edu.nrao.sss.model.project.scheduling.priority
Enum PriorityType

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

public enum PriorityType
extends Enum<PriorityType>

An enumeration of priority types.

The list of priority types is based on an email from Barry Clark.


Enum Constant Summary
CMP_SOFTWARE_PRIORITY
          Barry uses this to put a weighting in to favor longer blocks slightly more than shorter blocks.
MEAN_REFEREE_PRIORITY
          Barry puts this one in because he considers it to be a more fine grained than the PSC rating, even though they both tend to be similar.
PROJECT_PRIORITY
          A relative priority withen the project that indicates the importance of the scheduling block compared to other scheduling blocks in the project.
PROPOSAL_SELECTION_COMMITTEE_PRIORITY
          This usually follows the refreee ratings pretty well.
SP_SCHEDULER_PRIORITY
          Reserved for the scheduler to type in a number if he knows something the software doesn't about the urgency of getting the scheduling block done.
 
Method Summary
static PriorityType fromString(String text)
          Returns the priority type represented by text.
static PriorityType getDefault()
          Returns a default priority type.
 String getDescription()
           
 String toString()
          Returns a text representation of this enumeration constant.
static PriorityType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PriorityType[] 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

MEAN_REFEREE_PRIORITY

public static final PriorityType MEAN_REFEREE_PRIORITY
Barry puts this one in because he considers it to be a more fine grained than the PSC rating, even though they both tend to be similar. He uses it as a tie-breaker. Not as important for the VLA as for the VLBA because the VLBA has more large blocks. This means that for the VLBA things close in priority can ge many days apart. Tie-breaking may be more important when more emphasis is placed on large projects?????


PROPOSAL_SELECTION_COMMITTEE_PRIORITY

public static final PriorityType PROPOSAL_SELECTION_COMMITTEE_PRIORITY
This usually follows the refreee ratings pretty well. Barry considers this one as more course grained than the referee rating.


CMP_SOFTWARE_PRIORITY

public static final PriorityType CMP_SOFTWARE_PRIORITY
Barry uses this to put a weighting in to favor longer blocks slightly more than shorter blocks. He automatically assigns it half the logarithm of the length of the SB. Idea from ALMA is that the project manager, whose job is to keep an eye on the various SBs of the project, would condense his ruminations into a single number.


SP_SCHEDULER_PRIORITY

public static final PriorityType SP_SCHEDULER_PRIORITY
Reserved for the scheduler to type in a number if he knows something the software doesn't about the urgency of getting the scheduling block done. Barry uses this about once a year on the VLBA, but has not yet used it on the VLA.


PROJECT_PRIORITY

public static final PriorityType PROJECT_PRIORITY
A relative priority withen the project that indicates the importance of the scheduling block compared to other scheduling blocks in the project.

Method Detail

values

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

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

valueOf

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

getDescription

public String getDescription()

getDefault

public static PriorityType getDefault()
Returns a default priority type.

Returns:
a default priority type.

toString

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

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

fromString

public static PriorityType fromString(String text)
Returns the priority type represented by text.

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

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


Copyright © 2009. All Rights Reserved.