public class DailySchedulerAction extends AbstractCyclicAction
コンストラクタと説明 |
---|
DailySchedulerAction()
デフォルトコンストラクタ(10秒隔動作)
|
DailySchedulerAction(long checkInterval)
動作チェック間隔を指定したコンストラクタ
|
修飾子とタイプ | メソッドと説明 |
---|---|
void |
addSchedule(IActuatorAction action,
int startHour,
int startMin,
int endHour,
int endMin)
スケジュールを追加します。
|
void |
execute(ActuatorComponent<?> component)
アクション実行します。
|
void |
onStart(ActuatorComponent<?> component)
コンポーネントstart時に呼び出されます。
|
void |
onStop(ActuatorComponent<?> component)
コンポーネントstop時に呼び出されます。
|
void |
setResetAction(IActuatorAction action)
スケジュール実行されない時間帯のリセット動作を設定します。
|
getInterval
public DailySchedulerAction()
public DailySchedulerAction(long checkInterval)
checkInterval
- 動作間隔(msec)public void setResetAction(IActuatorAction action)
action
- アクションpublic void onStart(ActuatorComponent<?> component) throws java.lang.Exception
IActuatorAction
onStart
インタフェース内 IActuatorAction
onStart
クラス内 AbstractCyclicAction
component
- コンポーネントjava.lang.Exception
- 処理に失敗するとスローされます。public void onStop(ActuatorComponent<?> component) throws java.lang.Exception
IActuatorAction
onStop
インタフェース内 IActuatorAction
onStop
クラス内 AbstractCyclicAction
component
- コンポーネントjava.lang.Exception
- 処理に失敗するとスローされます。public void execute(ActuatorComponent<?> component) throws java.lang.Exception
IActuatorAction
component
- コンポーネントjava.lang.Exception
- 処理に失敗するとスローされます。public void addSchedule(IActuatorAction action, int startHour, int startMin, int endHour, int endMin)
action
- 実行アクションstartHour
- 動作開始時startMin
- 動作開始分endHour
- 動作終了時endMin
- 動作終了分