|
@ -0,0 +1,25 @@ |
|
|
|
|
|
package com.my.graphiteDigesterBg.step; |
|
|
|
|
|
import com.my.graphiteDigesterBg.diframe.DiTaskStepBase; |
|
|
|
|
|
import com.my.graphiteDigesterBg.diframe.TaskStep; |
|
|
|
|
|
import com.my.graphiteDigesterBg.move.MoveMoveTubeRackFromLiquidPlateToHeatPlate; |
|
|
|
|
|
import com.my.graphiteDigesterBg.resource.ResHeatingTubeRackSlot; |
|
|
|
|
|
import com.my.graphiteDigesterBg.task.TaskDigestion; |
|
|
|
|
|
@TaskStep(name="MoveToHeatingPlate") |
|
|
|
|
|
public class StepMoveToHeatingPlate extends DiTaskStepBase { |
|
|
|
|
|
@Override |
|
|
|
|
|
public void run() { |
|
|
|
|
|
TaskDigestion task = (TaskDigestion)this.getTask(); |
|
|
|
|
|
var slot = task.getSlot(); |
|
|
|
|
|
|
|
|
|
|
|
// 如果试管架在加热板位置,则不需要移动 |
|
|
|
|
|
if (ResHeatingTubeRackSlot.LOCATION_HEAT_PLATE.equals(slot.rackPosition)) { |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 移动试管架至加热板位置 |
|
|
|
|
|
var move = new MoveMoveTubeRackFromLiquidPlateToHeatPlate(); |
|
|
|
|
|
move.setDevice(task.getDevice()); |
|
|
|
|
|
move.slotIndex = slot.index; |
|
|
|
|
|
move.run(); |
|
|
|
|
|
} |
|
|
|
|
|
} |