BioRadio SDK - Java Android
1.1
|
Public Member Functions | |
abstract ChannelTypeCode | getTypeCode () |
final String | getChannelType () |
final int | getChannelIndex () |
final void | setChannelIndex (int value) |
final String | getName () |
final void | setName (String value) |
final boolean | getEnabled () |
final void | setEnabled (boolean value) |
final boolean | getSaved () |
final void | setSaved (boolean value) |
final boolean | getStreamed () |
final void | setStreamed (boolean value) |
final int | getPresetCode () |
final void | setPresetCode (int value) |
final boolean | getConnected () |
final void | setConnected (boolean value) |
ChannelConfiguration () | |
byte [] | getBytes () throws IOException |
boolean | equals (Object obj) |
int | hashCode () |
final void | assignFrom (Object channelConfig) |
final int | getExternalSensorPodId () |
Static Public Attributes | |
static final int | CustomParametersStartIndex = 35 |
static final int | MaxChannelNameLength = 30 |
Protected Member Functions | |
ChannelConfiguration (byte[] bytes) throws IOException | |
This class describes all settings that apply across all device channels.
com.glneurotech.devices.bioradio.configuration.ChannelConfiguration.ChannelConfiguration | ( | ) |
Default constructor
|
protected |
Constructor initializes the configuration with the passed byte array
bytes | Take a byte array as parameter. |
IOException |
final void com.glneurotech.devices.bioradio.configuration.ChannelConfiguration.assignFrom | ( | Object | channelConfig | ) |
Copies the contents from the passed object into this object
channelConfig | Take an object as parameter. |
boolean com.glneurotech.devices.bioradio.configuration.ChannelConfiguration.equals | ( | Object | obj | ) |
Provides a logical comparison of this object versus the passed object
obj | Take an object as parameter. |
byte [] com.glneurotech.devices.bioradio.configuration.ChannelConfiguration.getBytes | ( | ) | throws IOException |
Gets the byte array that defines this configuration
IOException |
final int com.glneurotech.devices.bioradio.configuration.ChannelConfiguration.getChannelIndex | ( | ) |
Gets the one-based channel ID that corresponds to the channel label on the device.
final String com.glneurotech.devices.bioradio.configuration.ChannelConfiguration.getChannelType | ( | ) |
A text label to describe the type of channel
final boolean com.glneurotech.devices.bioradio.configuration.ChannelConfiguration.getConnected | ( | ) |
Indicates whether this channel is connected. This is a read-only property.
final boolean com.glneurotech.devices.bioradio.configuration.ChannelConfiguration.getEnabled | ( | ) |
Indicates whether this channel is enabled. If true, data will be acquired on this channel. Otherwise, no data will be acquired.
final int com.glneurotech.devices.bioradio.configuration.ChannelConfiguration.getExternalSensorPodId | ( | ) |
Gets the sensor pod id based on this objects channel index
IndexOutOfBoundsException | "The channel index i is not contained within an external sensor pod." |
final String com.glneurotech.devices.bioradio.configuration.ChannelConfiguration.getName | ( | ) |
Gets the name associated with this channel. Names cannot exceed 30 characters.
final int com.glneurotech.devices.bioradio.configuration.ChannelConfiguration.getPresetCode | ( | ) |
Gets the code to indicate an application-specific use for this channel.
final boolean com.glneurotech.devices.bioradio.configuration.ChannelConfiguration.getSaved | ( | ) |
Indicates whether this channel will be saved to internal device memory when acquiring.
final boolean com.glneurotech.devices.bioradio.configuration.ChannelConfiguration.getStreamed | ( | ) |
Indicates whether channel data will be wirelessly streamed to a connected client when acquisition is started.
|
abstract |
Gets the type code for the specific channel type
int com.glneurotech.devices.bioradio.configuration.ChannelConfiguration.hashCode | ( | ) |
Gets a consistent hashcode based on the contents of this object
final void com.glneurotech.devices.bioradio.configuration.ChannelConfiguration.setChannelIndex | ( | int | value | ) |
Sets the one-based channel ID that corresponds to the channel label on the device.
value | Take an integer as parameter. |
final void com.glneurotech.devices.bioradio.configuration.ChannelConfiguration.setConnected | ( | boolean | value | ) |
Indicates whether this channel is connected. For internal use only.
value | Take a boolean value as parameter. |
final void com.glneurotech.devices.bioradio.configuration.ChannelConfiguration.setEnabled | ( | boolean | value | ) |
Indicates whether this channel is enabled. If true, data will be acquired on this channel. Otherwise, no data will be acquired.
value | Take a boolean value as parameter. |
final void com.glneurotech.devices.bioradio.configuration.ChannelConfiguration.setName | ( | String | value | ) |
Sets the name associated with this channel. Names cannot exceed 30 characters.
value | Take a string as parameter for the channel name |
final void com.glneurotech.devices.bioradio.configuration.ChannelConfiguration.setPresetCode | ( | int | value | ) |
Gets the code to indicate an application-specific use for this channel.
value | Take an integer as parameter. |
final void com.glneurotech.devices.bioradio.configuration.ChannelConfiguration.setSaved | ( | boolean | value | ) |
Indicates whether this channel will be saved to internal device memory when acquiring.
value | Take a boolean value as parameter. |
final void com.glneurotech.devices.bioradio.configuration.ChannelConfiguration.setStreamed | ( | boolean | value | ) |
Indicates whether channel data will be wirelessly streamed to a connected client when acquisition is started.
value | Take a boolean value as parameter. |
|
static |
Starting location in the byte array of a channel configuration for the channel's custom parameters
|
static |
Maximum number of characters for the name of a channel