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

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

public enum PriorityMeasureType
extends Enum<PriorityMeasureType>

Methods for combining priorities to obtain a single number representing the overall priority.

Author:
slovelan

Enum Constant Summary
WEIGHTED_SUM_OF_PRIORITIES
          Calculates the sum of the priorities multiplied by their weights and divides by the total weight of all the priorities.
 
Method Summary
static PriorityMeasureType fromString(String text)
          Returns the priority measure type represented by text.
static PriorityMeasureType getDefault()
          Returns a default priority measure type.
 String toString()
          Returns a text representation of this enumeration constant.
static PriorityMeasureType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PriorityMeasureType[] 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

WEIGHTED_SUM_OF_PRIORITIES

public static final PriorityMeasureType WEIGHTED_SUM_OF_PRIORITIES
Calculates the sum of the priorities multiplied by their weights and divides by the total weight of all the priorities.

Method Detail

values

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

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

valueOf

public static PriorityMeasureType 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 PriorityMeasureType getDefault()
Returns a default priority measure type.

Returns:
a default priority measure type.

toString

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

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

fromString

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

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

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


Copyright © 2009. All Rights Reserved.