public class Device
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
Device(java.lang.String name, java.lang.Integer deviceId, java.lang.Integer channelId)
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Integer | getChannelId()
Returns the channel ID.
|
java.lang.Integer | getDeviceId()
Returns the device ID.
|
java.lang.String | getName()
Returns the name of the device.
|
java.util.Map | getProperties()
Returns a map of additional properties of the device.
|
java.lang.Object | getProperty(java.lang.Object propertyName)
Returns a property of the device for the given property name.
|
void | setChannelId(java.lang.Integer channelId)
Sets the channel ID.
|
void | setDeviceId(java.lang.Integer deviceId)
Sets the device ID.
|
void | setName(java.lang.String name)
Sets the name of the device.
|
void | setProperties(java.util.Map properties)
Sets a map of additional properties of the device.
|
void | setProperty(java.lang.Object propertyName, java.lang.Object propertyValue)
Sets a property of the device for the given property name.
|
java.lang.String | toString()
Returns a string representation of this Device object.
|
public static final java.lang.String COPYRIGHT
public Device(java.lang.String name, java.lang.Integer deviceId, java.lang.Integer channelId)
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.Integer getDeviceId()
public void setDeviceId(java.lang.Integer deviceId)
public java.lang.Integer getChannelId()
public void setChannelId(java.lang.Integer channelId)
public java.util.Map getProperties()
public void setProperties(java.util.Map properties)
public java.lang.Object getProperty(java.lang.Object propertyName)
public void setProperty(java.lang.Object propertyName, java.lang.Object propertyValue)
public java.lang.String toString()