js.dev.cam.sbig
Enum CFW_ERROR

java.lang.Object
  extended by java.lang.Enum<CFW_ERROR>
      extended by js.dev.cam.sbig.CFW_ERROR
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CFW_ERROR>

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


Enum Constant Summary
CFWE_BAD_COMMAND
           
CFWE_BAD_MODEL
           
CFWE_BUSY
           
CFWE_CAL_ERROR
           
CFWE_DEVICE_NOT_CLOSED
           
CFWE_DEVICE_NOT_OPEN
           
CFWE_I2C_ERROR
           
CFWE_MOTOR_TIMEOUT
           
CFWE_NONE
           
 
Method Summary
 int getCfwError()
           
static CFW_ERROR getCfwError(int value)
           
static CFW_ERROR valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CFW_ERROR[] 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

CFWE_NONE

public static final CFW_ERROR CFWE_NONE

CFWE_BUSY

public static final CFW_ERROR CFWE_BUSY

CFWE_BAD_COMMAND

public static final CFW_ERROR CFWE_BAD_COMMAND

CFWE_CAL_ERROR

public static final CFW_ERROR CFWE_CAL_ERROR

CFWE_MOTOR_TIMEOUT

public static final CFW_ERROR CFWE_MOTOR_TIMEOUT

CFWE_BAD_MODEL

public static final CFW_ERROR CFWE_BAD_MODEL

CFWE_DEVICE_NOT_CLOSED

public static final CFW_ERROR CFWE_DEVICE_NOT_CLOSED

CFWE_DEVICE_NOT_OPEN

public static final CFW_ERROR CFWE_DEVICE_NOT_OPEN

CFWE_I2C_ERROR

public static final CFW_ERROR CFWE_I2C_ERROR
Method Detail

values

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

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

valueOf

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

getCfwError

public final int getCfwError()
Returns:
the cfwError.

getCfwError

public static final CFW_ERROR getCfwError(int value)
Parameters:
value - the CFW_ERROR value.
Returns:
the CFW_ERROR.