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,
Object defaultValue)
Initializes a new instance of the DeviceParam class with the specified parameter ID and default value.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getDefaultValue()
Get the default value of the parameter
|
DeviceParamID |
getId()
Gets the ID of the parameter.
|
Object[] |
getOptions()
Get the options of the parameter
|
byte[] |
getRawValue()
Get the value with raw byte array format
|
Object |
getValue()
Get the value of the parameter
|
void |
setCurrentValue(Object value)
Set the value of the parameter without checking the access mode.
|
void |
setRawValue(String value) |
void |
setValue(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, 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 Object getValue()
public void setValue(Object value)
value - The value to setpublic Object getDefaultValue()
public Object[] getOptions()
public void setCurrentValue(Object value)
value - The value to setpublic void setRawValue(String value)
public byte[] getRawValue()