|
|
@ -0,0 +1,19 @@ |
|
|
|
package com.my.graphiteDigesterBg.move; |
|
|
|
import com.my.graphiteDigesterBg.MyDevice; |
|
|
|
import com.my.graphiteDigesterBg.diframe.DiDevice; |
|
|
|
import com.my.graphiteDigesterBg.diframe.DiTaskMoveBase; |
|
|
|
import com.my.graphiteDigesterBg.diframe.actuator.DiActMotor; |
|
|
|
public class MoveDoorClose extends DiTaskMoveBase { |
|
|
|
@Override |
|
|
|
public void run() { |
|
|
|
DiActMotor doorMotor = this.getActuator(MyDevice.ACT_DOOR_MOTOR, DiActMotor.class); |
|
|
|
doorMotor.moveToIO(1, 1); |
|
|
|
} |
|
|
|
|
|
|
|
// execute |
|
|
|
public static void execute(DiDevice device) { |
|
|
|
var move = new MoveDoorClose(); |
|
|
|
move.setDevice(device); |
|
|
|
move.run(); |
|
|
|
} |
|
|
|
} |