|
|
@ -86,6 +86,17 @@ public class DeviceService { |
|
|
|
throw new RuntimeException("DEVICE_ALREADY_STARTED"); |
|
|
|
} |
|
|
|
|
|
|
|
// @TODO : 后面要详细检查耗材 |
|
|
|
if ( !this.device.testCards.getIsLoaded() ) { |
|
|
|
throw new RuntimeException("耗材未加载"); |
|
|
|
} |
|
|
|
if (this.device.pipetteTips.isEmpty() |
|
|
|
|| this.device.testCards.isEmpty() |
|
|
|
|| this.device.bufferTubes.isEmpty() |
|
|
|
|| this.device.largeBufferTubes.isEmpty()) { |
|
|
|
throw new RuntimeException("耗材不足, 请检查耗材"); |
|
|
|
} |
|
|
|
|
|
|
|
this.actionLog.log("device.start"); |
|
|
|
this.taskExecutor = new Executor(this.testService, this.device); |
|
|
|
this.taskExecutorThread = new Thread(this.taskExecutor); |
|
|
|