edu.unm.cs.cs351.tdrl.f06.p2
Enum EmployeeType

java.lang.Object
  extended by java.lang.Enum<EmployeeType>
      extended by edu.unm.cs.cs351.tdrl.f06.p2.EmployeeType
All Implemented Interfaces:
Serializable, Comparable<EmployeeType>

public enum EmployeeType
extends Enum<EmployeeType>

Represents the general kinds of employees that are available for Grell Computers to hire.

Version:
1.0
Author:
terran

Enum Constant Summary
DRONE
           
GURU
           
MANAGER
           
MOUTH_BREATHER
           
 
Method Summary
 double getHourlyRate()
          The rate of pay for this employee, in dollars per hour.
 double getScrewupProb(ComputerOrder o)
          Chance that this employee will screw up a particular order.
 double getSpeed()
           
static EmployeeType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static EmployeeType[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

MANAGER

public static final EmployeeType MANAGER

GURU

public static final EmployeeType GURU

DRONE

public static final EmployeeType DRONE

MOUTH_BREATHER

public static final EmployeeType MOUTH_BREATHER
Method Detail

values

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

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

valueOf

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

getHourlyRate

public double getHourlyRate()
The rate of pay for this employee, in dollars per hour.

Returns:
Pay rate

getScrewupProb

public double getScrewupProb(ComputerOrder o)
Chance that this employee will screw up a particular order.

Returns:
probability of messing up the order

getSpeed

public double getSpeed()