com.ace.moab.api.resourceset
Enum ResourceSetSelection

java.lang.Object
  extended by java.lang.Enum<ResourceSetSelection>
      extended by com.ace.moab.api.resourceset.ResourceSetSelection
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ResourceSetSelection>

public enum ResourceSetSelection
extends java.lang.Enum<ResourceSetSelection>

This enumeration represents the selection type that can be used when looking at a set of resources for selection purposes on a job or other Moab object.

Author:
Brady Kimball
See Also:
JobRequirement

Enum Constant Summary
ANYOF
          Select resources from all sets contained in node set list.
FIRSTOF
          Select first set found that contain adequate resources to support job.
ONEOF
          Select all sets that contain adequate resources to support job.
 
Method Summary
static ResourceSetSelection parseString(java.lang.String string)
          Parses a string and converts it into a ResourceSetSelection enum value if possible.
 java.lang.String toString()
           
static ResourceSetSelection valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ResourceSetSelection[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ONEOF

public static final ResourceSetSelection ONEOF
Select all sets that contain adequate resources to support job.


ANYOF

public static final ResourceSetSelection ANYOF
Select resources from all sets contained in node set list.


FIRSTOF

public static final ResourceSetSelection FIRSTOF
Select first set found that contain adequate resources to support job.

Method Detail

values

public static final ResourceSetSelection[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(ResourceSetSelection c : ResourceSetSelection.values())
        System.out.println(c);

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

valueOf

public static ResourceSetSelection valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<ResourceSetSelection>

parseString

public static ResourceSetSelection parseString(java.lang.String string)
                                        throws java.text.ParseException
Parses a string and converts it into a ResourceSetSelection enum value if possible.

Parameters:
string - the string to be parsed.
Returns:
the corresponding ResourceSetSelection enum value.
Throws:
java.text.ParseException - thrown if the String cannot be parsed.


Copyright © 2001-2009 Cluster Resources, Inc. All Rights Reserved.