|
|
@ -2,6 +2,8 @@ package com.my.graphiteDigesterBg.task; |
|
|
|
import com.my.graphiteDigesterBg.diframe.DiTaskBase; |
|
|
|
import com.my.graphiteDigesterBg.diframe.Task; |
|
|
|
import com.my.graphiteDigesterBg.move.MoveMoveTubeRackFromHeatPlateToLiquidPlate; |
|
|
|
import com.my.graphiteDigesterBg.resource.ResHeatingTubeRackSlotManager; |
|
|
|
|
|
|
|
@Task(name="SampleTakeOut") |
|
|
|
public class TaskSampleTakeOut extends DiTaskBase { |
|
|
|
// slot index |
|
|
@ -9,10 +11,15 @@ public class TaskSampleTakeOut extends DiTaskBase { |
|
|
|
|
|
|
|
@Override |
|
|
|
public void run() { |
|
|
|
var slotMan = this.getResourceManager(ResHeatingTubeRackSlotManager.class); |
|
|
|
var slot = slotMan.getSlotByIndex(this.slotIndex); |
|
|
|
|
|
|
|
var moveTubeRackFromHeatPlateToLiquidPlate = new MoveMoveTubeRackFromHeatPlateToLiquidPlate(); |
|
|
|
moveTubeRackFromHeatPlateToLiquidPlate.slotIndex = this.slotIndex; |
|
|
|
moveTubeRackFromHeatPlateToLiquidPlate.setDevice(this.getDevice()); |
|
|
|
moveTubeRackFromHeatPlateToLiquidPlate.run(); |
|
|
|
|
|
|
|
slot.unlock(); |
|
|
|
this.setStatus(TaskStatus.FINISHED); |
|
|
|
} |
|
|
|
} |