de.uka.ipd.sdq.pcm.resourceenvironment
Enum SchedulingPolicy

java.lang.Object
  extended by java.lang.Enum<SchedulingPolicy>
      extended by de.uka.ipd.sdq.pcm.resourceenvironment.SchedulingPolicy
All Implemented Interfaces:
Serializable, Comparable<SchedulingPolicy>

public enum SchedulingPolicy
extends Enum<SchedulingPolicy>

A representation of the literals of the enumeration 'Scheduling Policy', and utility methods for working with them.

See Also:
ResourceenvironmentPackage.getSchedulingPolicy()

Enum Constant Summary
DELAY
          The 'DELAY' literal object.
FCFS
          The 'FCFS' literal object.
PROCESSOR_SHARING
          The 'PROCESSOR SHARING' literal object.
 
Field Summary
static String copyright
           
static int DELAY_VALUE
          The 'DELAY' literal value.
static int FCFS_VALUE
          The 'FCFS' literal value.
static int PROCESSOR_SHARING_VALUE
          The 'PROCESSOR SHARING' literal value.
static List<SchedulingPolicy> VALUES
          A public read-only list of all the 'Scheduling Policy' enumerators.
 
Method Summary
static SchedulingPolicy get(int value)
          Returns the 'Scheduling Policy' literal with the specified integer value.
static SchedulingPolicy get(String literal)
          Returns the 'Scheduling Policy' literal with the specified literal value.
static SchedulingPolicy getByName(String name)
          Returns the 'Scheduling Policy' literal with the specified name.
 String getLiteral()
           
 String getName()
           
 int getValue()
           
 String toString()
          Returns the literal value of the enumerator, which is its string representation.
static SchedulingPolicy valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SchedulingPolicy[] 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

DELAY

public static final SchedulingPolicy DELAY
The 'DELAY' literal object.

See Also:
DELAY_VALUE

PROCESSOR_SHARING

public static final SchedulingPolicy PROCESSOR_SHARING
The 'PROCESSOR SHARING' literal object.

See Also:
PROCESSOR_SHARING_VALUE

FCFS

public static final SchedulingPolicy FCFS
The 'FCFS' literal object.

See Also:
FCFS_VALUE
Field Detail

copyright

public static final String copyright

See Also:
Constant Field Values

DELAY_VALUE

public static final int DELAY_VALUE
The 'DELAY' literal value.

If the meaning of 'DELAY' literal object isn't clear, there really should be more of a description here...

See Also:
DELAY, Constant Field Values

PROCESSOR_SHARING_VALUE

public static final int PROCESSOR_SHARING_VALUE
The 'PROCESSOR SHARING' literal value.

If the meaning of 'PROCESSOR SHARING' literal object isn't clear, there really should be more of a description here...

See Also:
PROCESSOR_SHARING, Constant Field Values

FCFS_VALUE

public static final int FCFS_VALUE
The 'FCFS' literal value.

If the meaning of 'FCFS' literal object isn't clear, there really should be more of a description here...

See Also:
FCFS, Constant Field Values

VALUES

public static final List<SchedulingPolicy> VALUES
A public read-only list of all the 'Scheduling Policy' enumerators.

Method Detail

values

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

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

valueOf

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

get

public static SchedulingPolicy get(String literal)
Returns the 'Scheduling Policy' literal with the specified literal value.


getByName

public static SchedulingPolicy getByName(String name)
Returns the 'Scheduling Policy' literal with the specified name.


get

public static SchedulingPolicy get(int value)
Returns the 'Scheduling Policy' literal with the specified integer value.


getValue

public int getValue()


getName

public String getName()


getLiteral

public String getLiteral()


toString

public String toString()
Returns the literal value of the enumerator, which is its string representation.

Overrides:
toString in class Enum<SchedulingPolicy>