com.biocomfort.SDK
Enum AutoUpdatePolicy

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

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

This enummeration is used to define one of three possible update strategies of bound or unbound devices in the SDK, set with the methods setUnboundAutoUpdatePolicy and setBoundAutoUpdatePolicy.

If there are new devices in range online, there are no more information of these devices except of their device id. With choosing an automatic update policy for bound and unbound devices you can assign different behaviors to the SDK for the case that information are missing.

See Also:
SDK.setUnboundAutoUpdatePolicy(AutoUpdatePolicy), SDK.setBoundAutoUpdatePolicy(AutoUpdatePolicy)

Enum Constant Summary
AUTO_UPDATE_ALL_MISSING_DATA
          Updates automatically all missing device information.
AUTO_UPDATE_DISABLED
          Disables all automatic updates.
AUTO_UPDATE_MISSING_SERIAL_NUMBER
          Reads the serial number of a device if it is missing.
 
Method Summary
static AutoUpdatePolicy valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static AutoUpdatePolicy[] 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

AUTO_UPDATE_DISABLED

public static final AutoUpdatePolicy AUTO_UPDATE_DISABLED
Disables all automatic updates. This should be the default value for bound or unbound devices.


AUTO_UPDATE_MISSING_SERIAL_NUMBER

public static final AutoUpdatePolicy AUTO_UPDATE_MISSING_SERIAL_NUMBER
Reads the serial number of a device if it is missing.


AUTO_UPDATE_ALL_MISSING_DATA

public static final AutoUpdatePolicy AUTO_UPDATE_ALL_MISSING_DATA
Updates automatically all missing device information.

Method Detail

values

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

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

valueOf

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