Enum BluetoothCommand
- java.lang.Object
-
- java.lang.Enum<BluetoothCommand>
-
- ptolemy.domains.wireless.lib.bluetooth.BluetoothCommand
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BluetoothCommand>
public enum BluetoothCommand extends java.lang.Enum<BluetoothCommand>
This class defines all allowable Bluetooth Wired commands, that wil be parsed within the Bluetooth Device actor.- Since:
- Ptolemy II 11.0
- Version:
- $Id$
- Author:
- Phillip Azar
- See Also:
BluetoothDevice
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMMAND_CONNECT
COMMAND_DISCONNECT
COMMAND_DISCOVERABLE
COMMAND_HIDE
COMMAND_NOCOMMAND
COMMAND_PAIR
COMMAND_SCAN
COMMAND_SENDDATA
COMMAND_STOPSCAN
COMMAND_SWITCHOFF
COMMAND_SWITCHON
COMMAND_UNPAIR
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BluetoothCommand
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BluetoothCommand[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
COMMAND_SWITCHON
public static final BluetoothCommand COMMAND_SWITCHON
-
COMMAND_SWITCHOFF
public static final BluetoothCommand COMMAND_SWITCHOFF
-
COMMAND_SCAN
public static final BluetoothCommand COMMAND_SCAN
-
COMMAND_STOPSCAN
public static final BluetoothCommand COMMAND_STOPSCAN
-
COMMAND_CONNECT
public static final BluetoothCommand COMMAND_CONNECT
-
COMMAND_DISCONNECT
public static final BluetoothCommand COMMAND_DISCONNECT
-
COMMAND_PAIR
public static final BluetoothCommand COMMAND_PAIR
-
COMMAND_UNPAIR
public static final BluetoothCommand COMMAND_UNPAIR
-
COMMAND_DISCOVERABLE
public static final BluetoothCommand COMMAND_DISCOVERABLE
-
COMMAND_HIDE
public static final BluetoothCommand COMMAND_HIDE
-
COMMAND_SENDDATA
public static final BluetoothCommand COMMAND_SENDDATA
-
COMMAND_NOCOMMAND
public static final BluetoothCommand COMMAND_NOCOMMAND
-
-
Method Detail
-
values
public static BluetoothCommand[] 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 (BluetoothCommand c : BluetoothCommand.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BluetoothCommand 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 namejava.lang.NullPointerException
- if the argument is null
-
-