BertecDeviceJava
Enum BertecDevice.ErrorValue

java.lang.Object
  extended by java.lang.Enum<BertecDevice.ErrorValue>
      extended by BertecDeviceJava.BertecDevice.ErrorValue
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<BertecDevice.ErrorValue>
Enclosing class:
BertecDevice

public static enum BertecDevice.ErrorValue
extends java.lang.Enum<BertecDevice.ErrorValue>

Error values that can be returned via the event or data poll.


Enum Constant Summary
AUTOZERO_WORKING
          currently finding the zero values
AUTOZERO_ZEROFOUND
          the zero leveling value was found
DATA_SYNCHRONIZING
          synchronizing); data not available yet (in Status during callbacks); return code for polling)
DEVICE_HAS_FAULTED
          the device has failed in some manner - power off the device, check all connections, power back on
ERROR_INVALIDHANDLE
          Internal error - handle is invalid
NO_DATA_RECEIVED
          no data is being received from the devices, check the cables
POLL_CHECKSTATUS
          A status change occurred at this point.
POLL_DEVICES_READY
          there are plates to be read
POLL_NODEVICES
          There are apparently no devices attached.
POLL_NOPOLLBUFFER
          No DataPoll buffers were allocated via PollingBufferSize.
POLL_NOTSTARTED
          Didn't start the data process - call Start
POLL_NOUSERBUFFER
          The DataPoll call buffer was too small.
POLL_OVERFLOW
          The polling wasn't performed for long enough); the data after this point is delayed or lost.
SEQUENCE_MISSED
          one or more plates have missing data sequence - data may be invalid
SEQUENCE_REGAINED
          the plates have regained their data sequence
SYNCHRONIZE_LOST
          the plates have lost sync with each other - check sync cable
 
Method Summary
static BertecDevice.ErrorValue get(int code)
           
 int getCode()
           
static BertecDevice.ErrorValue valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static BertecDevice.ErrorValue[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

POLL_NOUSERBUFFER

public static final BertecDevice.ErrorValue POLL_NOUSERBUFFER
The DataPoll call buffer was too small.


POLL_NOPOLLBUFFER

public static final BertecDevice.ErrorValue POLL_NOPOLLBUFFER
No DataPoll buffers were allocated via PollingBufferSize.


POLL_CHECKSTATUS

public static final BertecDevice.ErrorValue POLL_CHECKSTATUS
A status change occurred at this point.


POLL_OVERFLOW

public static final BertecDevice.ErrorValue POLL_OVERFLOW
The polling wasn't performed for long enough); the data after this point is delayed or lost.


POLL_NODEVICES

public static final BertecDevice.ErrorValue POLL_NODEVICES
There are apparently no devices attached.


POLL_NOTSTARTED

public static final BertecDevice.ErrorValue POLL_NOTSTARTED
Didn't start the data process - call Start


DATA_SYNCHRONIZING

public static final BertecDevice.ErrorValue DATA_SYNCHRONIZING
synchronizing); data not available yet (in Status during callbacks); return code for polling)


SYNCHRONIZE_LOST

public static final BertecDevice.ErrorValue SYNCHRONIZE_LOST
the plates have lost sync with each other - check sync cable


SEQUENCE_MISSED

public static final BertecDevice.ErrorValue SEQUENCE_MISSED
one or more plates have missing data sequence - data may be invalid


SEQUENCE_REGAINED

public static final BertecDevice.ErrorValue SEQUENCE_REGAINED
the plates have regained their data sequence


NO_DATA_RECEIVED

public static final BertecDevice.ErrorValue NO_DATA_RECEIVED
no data is being received from the devices, check the cables


DEVICE_HAS_FAULTED

public static final BertecDevice.ErrorValue DEVICE_HAS_FAULTED
the device has failed in some manner - power off the device, check all connections, power back on


POLL_DEVICES_READY

public static final BertecDevice.ErrorValue POLL_DEVICES_READY
there are plates to be read


AUTOZERO_WORKING

public static final BertecDevice.ErrorValue AUTOZERO_WORKING
currently finding the zero values


AUTOZERO_ZEROFOUND

public static final BertecDevice.ErrorValue AUTOZERO_ZEROFOUND
the zero leveling value was found


ERROR_INVALIDHANDLE

public static final BertecDevice.ErrorValue ERROR_INVALIDHANDLE
Internal error - handle is invalid

Method Detail

values

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

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

valueOf

public static BertecDevice.ErrorValue 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

getCode

public int getCode()

get

public static BertecDevice.ErrorValue get(int code)