public abstract class SensorComponent<T extends ComponentConfig> extends AbstractComponent<T>
| コンストラクタと説明 |
|---|
SensorComponent(java.lang.String id,
T config)
コンストラクタ.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
CcmService |
getCcmService()
センサーに対応するCCMサービスを取得します。
|
void |
init(IDevice<?> device)
初期化処理を実行します。
|
void |
setValue(java.lang.Number value)
デバイス値を設定します。
|
void |
start()
動作を開始します。
|
addListener, getConfig, getDevice, getId, getListeners, getValue, notifyException, notifyStarted, notifyStopped, notifyUpdated, onInit, onStart, onStop, removeListener, setDevice, stoppublic SensorComponent(java.lang.String id,
T config)
id - コンポーネントIDconfig - 設定値オブジェクトpublic void setValue(java.lang.Number value)
setValue インタフェース内 IComponent<T extends ComponentConfig>setValue クラス内 AbstractComponent<T extends ComponentConfig>value - 値public CcmService getCcmService()
public void init(IDevice<?> device) throws java.lang.Exception
IComponentinit インタフェース内 IComponent<T extends ComponentConfig>init クラス内 AbstractComponent<T extends ComponentConfig>device - 所属するデバイスjava.lang.Exception - 処理に失敗するとスローされます。public void start()
throws java.lang.Exception
IComponentstart インタフェース内 IComponent<T extends ComponentConfig>start クラス内 AbstractComponent<T extends ComponentConfig>java.lang.Exception - 処理に失敗するとスローされます。