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)
name
- The name of the device.deviceId
- The ID of the device.channelId
- The ID of the channel.public java.lang.String getName()
public void setName(java.lang.String name)
name
- The name of the device.public java.lang.Integer getDeviceId()
public void setDeviceId(java.lang.Integer deviceId)
deviceId
- The device ID.public java.lang.Integer getChannelId()
public void setChannelId(java.lang.Integer channelId)
channelId
- The channel ID.public java.util.Map getProperties()
public void setProperties(java.util.Map properties)
properties
- The additional properties of the device.public java.lang.Object getProperty(java.lang.Object propertyName)
propertyName
- The name of the propertypublic void setProperty(java.lang.Object propertyName, java.lang.Object propertyValue)
propertyName
- The name of the property.propertyValue
- The value of the property.public java.lang.String toString()
toString
in class java.lang.Object