public class DigitalPositioningActuator<T extends DigitalPositioningActuatorConfig> extends GpioActuatorBase<T> implements IPositioner
| 修飾子とタイプ | フィールドと説明 |
|---|---|
static int |
DOWN
状態定数:逆方向動作中
|
static int |
STOP
状態定数:停止
|
static int |
UP
状態定数:正方向動作中
|
| コンストラクタと説明 |
|---|
DigitalPositioningActuator(java.lang.String id,
T config)
コンストラクタです。
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
downPosition(long executeTime)
位置を負方向に動作させます。
|
Pin |
getDownInputPin()
負方向制御入力ピンを取得します。
|
Pin |
getDownOutputPin()
負方向制御出力ピンを取得します。
|
int |
getPosition()
現在位置を取得します
|
Pin |
getUpInputPin()
正方向制御入力ピンを取得します。
|
Pin |
getUpOutputPin()
正方向制御出力ピンを取得します。
|
protected void |
onInit()
GPIOピンを初期化し、rcM/rcA受信動作アクションを登録します。
|
protected void |
onStart()
設定値から内部動作情報を初期化し、監視スレッドを起動します。
|
protected void |
onStop()
監視スレッドを停止し、最終位置をDBに保存します。
|
void |
resetPosition()
位置情報を強制リセットします。
|
void |
setPosition(int pos)
指定位置で停止するように移動します。
|
void |
stopPosition()
動作停止させます。
|
void |
upPosition(long executeTime)
位置を正方向に動作させます。
|
getInterlockPin, isInterlocksetValuechangeMode, getAction, getActionMode, getActiveRcAService, getActiveRcMService, getOprServices, getRcAServices, getRcMServices, init, isRepresentative, notifyException, setAction, setActionMode, start, stopaddListener, getConfig, getDevice, getId, getListeners, getValue, notifyStarted, notifyStopped, notifyUpdated, removeListener, setDevicepublic static final int UP
public static final int DOWN
public static final int STOP
public DigitalPositioningActuator(java.lang.String id,
T config)
id - コンポーネントIDconfig - 設定値public Pin getUpOutputPin()
public Pin getUpInputPin()
public Pin getDownOutputPin()
public Pin getDownInputPin()
protected void onInit()
throws java.lang.Exception
onInit クラス内 GpioActuatorBase<T extends DigitalPositioningActuatorConfig>java.lang.Exception - 処理に失敗するとスローされます。protected void onStart()
throws java.lang.Exception
onStart クラス内 GpioActuatorBase<T extends DigitalPositioningActuatorConfig>java.lang.Exception - 処理に失敗するとスローされます。protected void onStop()
throws java.lang.Exception
onStop クラス内 GpioActuatorBase<T extends DigitalPositioningActuatorConfig>java.lang.Exception - 処理に失敗するとスローされます。public int getPosition()
IPositionergetPosition インタフェース内 IPositionerpublic void setPosition(int pos)
IPositionersetPosition インタフェース内 IPositionerpos - 停止位置(%)public void resetPosition()
public void upPosition(long executeTime)
executeTime - 動作時間(msec)public void downPosition(long executeTime)
executeTime - 動作時間(msec)public void stopPosition()