From 7bc5c11e5da64049790242f9687345c3576a08c4 Mon Sep 17 00:00:00 2001 From: weizhihong Date: Fri, 16 Sep 2022 15:57:36 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=88=A0=E9=99=A4=E5=AE=9E=E8=AE=AD?= =?UTF-8?q?=E4=BB=BF=E7=9C=9F=E6=9A=82=E5=81=9C=E6=93=8D=E4=BD=9C=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../services/training2/Training2Service.java | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/src/main/java/club/joylink/rtss/services/training2/Training2Service.java b/src/main/java/club/joylink/rtss/services/training2/Training2Service.java index d6d3b3632..d10a5028d 100644 --- a/src/main/java/club/joylink/rtss/services/training2/Training2Service.java +++ b/src/main/java/club/joylink/rtss/services/training2/Training2Service.java @@ -298,8 +298,6 @@ public class Training2Service { if (result) { checkStepCompletionAndSendNext(step, simulation); // 直接检查步骤是否完成 } - // 恢复前端运行 - pauseOrStartSimulation(simulation, false); } } } catch (InterruptedException e) { @@ -342,8 +340,6 @@ public class Training2Service { if (!Step2.StepStatus.isCompletion(operation.getStatus())) { operation.doOperated(); //操作过后 tryCompleteOperation(simulation, step, operation); // 尝试完成 - // 恢复前端运行 - pauseOrStartSimulation(simulation, false); } } } catch (InterruptedException e) { @@ -393,8 +389,6 @@ public class Training2Service { // 发送操作完成信息 applicationContext.publishEvent(new SimulationOperationErrorEvent(this, simulation, operation2, step)); } - // 操作完成后,如果是测验模式则仿真启动 - pauseOrStartSimulation(simulation, false); // 检查是否要计算指标 if (!CollectionUtils.isEmpty(training2.getIndexList())) { training2.getIndexList().stream() @@ -630,7 +624,6 @@ public class Training2Service { } return true; } else { // 非机器人,暂停仿真等待用户操作 - pauseOrStartSimulation(simulation, true); return false; } } @@ -669,23 +662,6 @@ public class Training2Service { } } - /** - * 暂停、恢复实训 - */ - private void pauseOrStartSimulation(Simulation simulation, boolean isPause) { - Training2 training2 = simulation.getTraining2(); - if (training2 == null) { - return; - } - if (!ScriptBO.Mode.TEST_MODE.equals(training2.getMode())) { - if (isPause) { - simulation.onlyPause(); - } else { - simulation.start(); - } - } - } - /** * 移除实训任务 */