【道岔定反位背景】

This commit is contained in:
weizhihong 2022-11-30 16:22:20 +08:00
parent 1753c0dd12
commit 4fec906849

View File

@ -38,6 +38,39 @@ public enum BgSceneStatusRule {
signal.setBlockade(true); signal.setBlockade(true);
return getBgScene(simulation); return getBgScene(simulation);
} }
},
/**
* 道岔定位背景将道岔设置为范围
*/
SWITCH_BG_SCENE("道岔定位背景") {
@Override
public String doHandle(Simulation simulation, MapElement mapElement) {
Switch iSwitch = (Switch) mapElement;
setSingleSwitchPositionDirectly(iSwitch, false);
return getBgScene(simulation);
}
},
/**
* 道岔定位背景将道岔设置为反位
*/
SWITCH_NP_BG_SCENE("道岔定位背景") {
@Override
public String doHandle(Simulation simulation, MapElement mapElement) {
Switch iSwitch = (Switch) mapElement;
setSingleSwitchPositionDirectly(iSwitch, false);
return getBgScene(simulation);
}
},
/**
* 道岔反位背景将道岔设置为定位
*/
SWITCH_RP_BG_SCENE("道岔反位背景") {
@Override
public String doHandle(Simulation simulation, MapElement mapElement) {
Switch iSwitch = (Switch) mapElement;
setSingleSwitchPositionDirectly(iSwitch, true);
return getBgScene(simulation);
}
} }
; ;