4 changed files with 120 additions and 32 deletions
-
3src/main/java/com/dreamworks/boditech/driver/Device.java
-
59src/main/java/com/dreamworks/boditech/driver/actuator/ActTestTubeCapClipMotor.java
-
81src/main/java/com/dreamworks/boditech/driver/task/TaskStartReset.java
-
9src/main/java/com/dreamworks/boditech/driver/task/step/StepPretreatment.java
@ -0,0 +1,59 @@ |
|||||
|
package com.dreamworks.boditech.driver.actuator; |
||||
|
import com.dreamworks.boditech.driver.Device; |
||||
|
import com.dreamworks.boditech.service.RuntimeVariableService; |
||||
|
|
||||
|
import java.util.Map; |
||||
|
public class ActTestTubeCapClipMotor extends ActMotor { |
||||
|
// runtime variable status : empty |
||||
|
public static final String RT_STATUS_EMPTY = "EMPTY"; |
||||
|
// runtime variable status : tube |
||||
|
public static final String RT_STATUS_TUBE = "TUBE"; |
||||
|
// runtime variable status : cap |
||||
|
public static final String RT_STATUS_CAP = "CAP"; |
||||
|
|
||||
|
// constructor |
||||
|
public ActTestTubeCapClipMotor(Integer mid, Device device) { |
||||
|
super(mid, device); |
||||
|
} |
||||
|
|
||||
|
// open |
||||
|
public void open() { |
||||
|
this.moveTo("shakeTestTubeCapClipOpen"); |
||||
|
RuntimeVariableService rtVariables = this.getDevice().runtimeVariableService; |
||||
|
rtVariables.setString("DeviceTubeCapClipStatus", ActTestTubeCapClipMotor.RT_STATUS_EMPTY); |
||||
|
rtVariables.setString("DeviceTubeCapClipTubeType", ""); |
||||
|
} |
||||
|
|
||||
|
// close |
||||
|
public void close() { |
||||
|
this.moveTo("shakeTestTubeCapClipClose"); |
||||
|
RuntimeVariableService rtVariables = this.getDevice().runtimeVariableService; |
||||
|
rtVariables.setString("DeviceTubeCapClipStatus", ActTestTubeCapClipMotor.RT_STATUS_EMPTY); |
||||
|
rtVariables.setString("DeviceTubeCapClipTubeType", ""); |
||||
|
} |
||||
|
|
||||
|
// clip tube body |
||||
|
public void clipTubeBody( String tubeType ) { |
||||
|
this.moveTo("shakeTestTubeCapClipClose"); |
||||
|
RuntimeVariableService rtVariables = this.getDevice().runtimeVariableService; |
||||
|
rtVariables.setString("DeviceTubeCapClipStatus", ActTestTubeCapClipMotor.RT_STATUS_TUBE); |
||||
|
rtVariables.setString("DeviceTubeCapClipTubeType", tubeType); |
||||
|
} |
||||
|
|
||||
|
// clip tube cap |
||||
|
public void clipTubeCap( String tubeType ) { |
||||
|
this.moveTo("shakeTestTubeCapClipClose"); |
||||
|
RuntimeVariableService rtVariables = this.getDevice().runtimeVariableService; |
||||
|
rtVariables.setString("DeviceTubeCapClipStatus", ActTestTubeCapClipMotor.RT_STATUS_CAP); |
||||
|
} |
||||
|
|
||||
|
// get clip status |
||||
|
public String getClipStatus() { |
||||
|
return this.getDevice().runtimeVariableService.getString("DeviceTubeCapClipStatus"); |
||||
|
} |
||||
|
|
||||
|
// get clip tube type |
||||
|
public String getClipTubeType() { |
||||
|
return this.getDevice().runtimeVariableService.getString("DeviceTubeCapClipTubeType"); |
||||
|
} |
||||
|
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue