com.biocomfort.SDK
Enum SDKState

java.lang.Object
  extended by java.lang.Enum<SDKState>
      extended by com.biocomfort.SDK.SDKState
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SDKState>

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

The enumeration SDKState contains the possible states of the SDK implementation.

See Also:
SDK

Enum Constant Summary
EXITED
          This state indicates that the exiting process has ended without errors.
EXITED_WITH_ERROR
          The exiting process was canceled by errors.
EXITING
          The SDK is exiting and tearing down.
NOT_STARTED
          The SKD has not been started until now.
STARTED
          This state indicates that the SDK is started and ready to use.
STARTED_WITH_ERROR
          The starting process was canceled by errors.
STARTING
          The SDK is starting and setting up.
SUSPENDED
          The SDK is temporary not ready to use.
 
Method Summary
static SDKState valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SDKState[] 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

NOT_STARTED

public static final SDKState NOT_STARTED
The SKD has not been started until now. To use the SDK it has to be started with the asynchronous method start() or the synchronous method startAndWait().

See Also:
SDK.start(), SDK.startAndWait()

STARTING

public static final SDKState STARTING
The SDK is starting and setting up.

See Also:
SDK.start(), SDK.startAndWait()

STARTED

public static final SDKState STARTED
This state indicates that the SDK is started and ready to use. Only if the SDK has this state it is possible to use it and to communicate with the devices.


SUSPENDED

public static final SDKState SUSPENDED
The SDK is temporary not ready to use.


STARTED_WITH_ERROR

public static final SDKState STARTED_WITH_ERROR
The starting process was canceled by errors.


EXITING

public static final SDKState EXITING
The SDK is exiting and tearing down.

See Also:
SDK.exit(), SDK.exitAndWait()

EXITED

public static final SDKState EXITED
This state indicates that the exiting process has ended without errors.


EXITED_WITH_ERROR

public static final SDKState EXITED_WITH_ERROR
The exiting process was canceled by errors.

Method Detail

values

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

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

valueOf

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