|
|
@ -21,9 +21,9 @@ public class TrayService { |
|
|
|
*/ |
|
|
|
public synchronized TrayState trayIn() { |
|
|
|
TrayState trayState = new TrayState(); |
|
|
|
trayState.setInFeed(true); |
|
|
|
trayState.setInFeedArea(true); |
|
|
|
deviceStateService.getDeviceState().getTrays().add(trayState); |
|
|
|
deviceStateService.setSolutionModuleStateTrayStatus(1); |
|
|
|
deviceStateService.getDeviceState().getSolutionModule().setFeedAreaTrayStatus(true); |
|
|
|
return trayState; |
|
|
|
} |
|
|
|
|
|
|
@ -32,15 +32,15 @@ public class TrayService { |
|
|
|
*/ |
|
|
|
public synchronized void trayOut() { |
|
|
|
List<TrayState> trayList = deviceStateService.getDeviceState().getTrays(); |
|
|
|
trayList.removeIf(TrayState::isInSolutionModule); |
|
|
|
deviceStateService.setSolutionModuleStateTrayStatus(0); |
|
|
|
trayList.removeIf(TrayState::isInSolutionPositon); |
|
|
|
deviceStateService.getDeviceState().getSolutionModule().setFeedAreaTrayStatus(false); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 设置托盘试管 |
|
|
|
*/ |
|
|
|
public synchronized void setTrayTube(SetTrayTubeVO setTrayTubeVO) { |
|
|
|
TrayState trayState = deviceStateService.getTrayState(setTrayTubeVO.getTrayUuid()); |
|
|
|
TrayState trayState = deviceStateService.getDeviceState().getTrayState(setTrayTubeVO.getTrayUuid()); |
|
|
|
trayState.setTubes(setTrayTubeVO.getTubes()); |
|
|
|
} |
|
|
|
|
|
|
|