edu.mit.ll.group43.surfaceoptimization.aircraft
Enum DefaultWeightClass

java.lang.Object
  extended by java.lang.Enum<DefaultWeightClass>
      extended by edu.mit.ll.group43.surfaceoptimization.aircraft.DefaultWeightClass
All Implemented Interfaces:
WeightClass, java.io.Serializable, java.lang.Comparable<DefaultWeightClass>

public enum DefaultWeightClass
extends java.lang.Enum<DefaultWeightClass>
implements WeightClass

Represents the default weight classes that this project considers, based on a number of different standards.

Author:
William Hawkins

Enum Constant Summary
B757
           
HEAVY
           
LARGE
           
SMALL
           
 
Method Summary
static DefaultWeightClass valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DefaultWeightClass[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SMALL

public static final DefaultWeightClass SMALL

LARGE

public static final DefaultWeightClass LARGE

HEAVY

public static final DefaultWeightClass HEAVY

B757

public static final DefaultWeightClass B757
Method Detail

values

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

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

valueOf

public static DefaultWeightClass 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
java.lang.NullPointerException - if the argument is null