public class DeviceParam extends BaseParam
_default, _max, _maxVersion, _min, _minVersion, _options, _value, type| Constructor and Description |
|---|
DeviceParam(DeviceParamID id)
Initializes a new instance of the DeviceParam class with the specified parameter ID.
|
DeviceParam(DeviceParamID id,
java.lang.Object defaultValue)
Initializes a new instance of the DeviceParam class with the specified parameter ID and default value.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getDefaultValue()
Get the default value of the parameter
|
DeviceParamID |
getId()
Gets the ID of the parameter.
|
java.lang.Object[] |
getOptions()
Get the options of the parameter
|
byte[] |
getRawValue()
Get the value with raw byte array format
|
java.lang.Object |
getValue()
Get the value of the parameter
|
void |
setCurrentValue(java.lang.Object value)
Set the value of the parameter without checking the access mode.
|
void |
setRawValue(java.lang.String value) |
void |
setValue(java.lang.Object value)
Set the value of the parameter
|
DeviceParam |
toDeviceParam()
In child classes, this method is override to return a DeviceParam.
|
getMaxVersion, getMinVersion, toEngineParampublic DeviceParam(DeviceParamID id)
id - The DeviceParamID enumeration that indicates the parameter ID.public DeviceParam(DeviceParamID id, java.lang.Object defaultValue)
id - The DeviceParamID enumeration that indicates the parameter ID.defaultValue - The default value of the parameter.public DeviceParamID getId()
public DeviceParam toDeviceParam()
BaseParamtoDeviceParam in class BaseParampublic java.lang.Object getValue()
public void setValue(java.lang.Object value)
value - The value to setpublic java.lang.Object getDefaultValue()
public java.lang.Object[] getOptions()
public void setCurrentValue(java.lang.Object value)
value - The value to setpublic void setRawValue(java.lang.String value)
public byte[] getRawValue()