be.optiloading
Enum ShipParticular

java.lang.Object
  extended by java.lang.Enum<ShipParticular>
      extended by be.optiloading.ShipParticular
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ShipParticular>

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

Enum class used to create a list of the different ship particulars.

Author:
Tim Pintens, info@optiloading.be, www.optiloading.be

Enum Constant Summary
CONSTANTS
           
DAFT
           
DEADWEIGHT
           
DENSITY
           
DFWD
           
DISPLACEMENT
           
DRAUGHT
           
FSC
           
GM
           
KB
           
KG
           
KM
           
LBPP
           
LCB
           
LCF
           
LCG
           
LIGHTSHIP
           
LIGHTSHIP_LCF
           
MAXDISPLACEMENT
           
MCT
           
MINDISPLACEMENT
           
NUMBEROFTANKS
           
TRIM
           
 
Method Summary
static ShipParticular valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ShipParticular[] 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

DENSITY

public static final ShipParticular DENSITY

DISPLACEMENT

public static final ShipParticular DISPLACEMENT

DRAUGHT

public static final ShipParticular DRAUGHT

LCF

public static final ShipParticular LCF

LCB

public static final ShipParticular LCB

MCT

public static final ShipParticular MCT

MAXDISPLACEMENT

public static final ShipParticular MAXDISPLACEMENT

MINDISPLACEMENT

public static final ShipParticular MINDISPLACEMENT

LIGHTSHIP

public static final ShipParticular LIGHTSHIP

LIGHTSHIP_LCF

public static final ShipParticular LIGHTSHIP_LCF

NUMBEROFTANKS

public static final ShipParticular NUMBEROFTANKS

LBPP

public static final ShipParticular LBPP

TRIM

public static final ShipParticular TRIM

DFWD

public static final ShipParticular DFWD

DAFT

public static final ShipParticular DAFT

LCG

public static final ShipParticular LCG

KM

public static final ShipParticular KM

FSC

public static final ShipParticular FSC

GM

public static final ShipParticular GM

KB

public static final ShipParticular KB

KG

public static final ShipParticular KG

DEADWEIGHT

public static final ShipParticular DEADWEIGHT

CONSTANTS

public static final ShipParticular CONSTANTS
Method Detail

values

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

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

valueOf

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