添加挤岔恢复指令
This commit is contained in:
parent
efeda41423
commit
e351662dcc
@ -77,6 +77,8 @@ public class Operation {
|
||||
Switch_Hook_Lock,
|
||||
/** 道岔强解 */
|
||||
Switch_Force_Unlock,
|
||||
/** 挤岔恢复 */
|
||||
Switch_Squeeze_Recovery,
|
||||
|
||||
//--------------------------- 区段 ---------------------------
|
||||
/** 封锁 */
|
||||
|
@ -260,4 +260,10 @@ public class SwitchOperateHandler {
|
||||
public void switchForceTurn(Simulation simulation, String switchCode, Boolean normal) {
|
||||
ciApiService.switchForceTurn(simulation, switchCode, normal);
|
||||
}
|
||||
|
||||
/** 挤岔恢复 */
|
||||
@OperateHandlerMapping(type = Operation.Type.Switch_Squeeze_Recovery)
|
||||
public void switchSqueezeRecovery(Simulation simulation, String switchCode) {
|
||||
ciApiService.switchSqueezeRecovery(simulation, switchCode);
|
||||
}
|
||||
}
|
||||
|
@ -329,4 +329,9 @@ public interface CiApiService {
|
||||
* 道岔计轴预复位
|
||||
*/
|
||||
void switchAxlePreReset(Simulation simulation, String switchCode);
|
||||
|
||||
/**
|
||||
* 挤岔恢复
|
||||
*/
|
||||
void switchSqueezeRecovery(Simulation simulation, String switchCode);
|
||||
}
|
||||
|
@ -508,4 +508,10 @@ public class CiApiServiceImpl implements CiApiService {
|
||||
Switch aSwitch = simulation.getRepository().getByCode(switchCode, Switch.class);
|
||||
aSwitch.setPreReset(true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void switchSqueezeRecovery(Simulation simulation, String switchCode) {
|
||||
Switch aSwitch = simulation.getRepository().getByCode(switchCode, Switch.class);
|
||||
Switch.SwitchFault.SQUEEZE.fix(aSwitch);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user