public abstract class PiSensorBase<T extends PiSensorConfig> extends SensorComponent<T>
コンストラクタと説明 |
---|
PiSensorBase(java.lang.String id,
T config)
コンストラクタです。
|
修飾子とタイプ | メソッドと説明 |
---|---|
protected void |
onInit()
初期化(init)実行時に呼び出されます。
|
void |
setValue(java.lang.Number num)
変換式や上限、下限制約に基づいた値を設定します。
|
getCcmService, init, start
addListener, getConfig, getDevice, getId, getListeners, getValue, notifyException, notifyStarted, notifyStopped, notifyUpdated, onStart, onStop, removeListener, setDevice, stop
public PiSensorBase(java.lang.String id, T config)
id
- コンポーネントIDconfig
- 設定値protected void onInit() throws java.lang.Exception
AbstractComponent
onInit
クラス内 AbstractComponent<T extends PiSensorConfig>
java.lang.Exception
- 処理に失敗するとスローされます。public void setValue(java.lang.Number num)
setValue
インタフェース内 IComponent<T extends PiSensorConfig>
setValue
クラス内 SensorComponent<T extends PiSensorConfig>
num
- 値