【设备管理员】
This commit is contained in:
parent
15d7ebd7f1
commit
e3532ea8b4
@ -17,6 +17,7 @@ import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.util.StringUtils;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
@ -51,13 +52,13 @@ public class MemberManager {
|
||||
// 大铁CTC
|
||||
if (simulation.getRepository().getConfig().isRailway()) {
|
||||
// this.addRole(simulation, SimulationMember.Type.RAIL_CTC, null, station);
|
||||
this.addRole(simulation, SimulationMember.Type.STATION_ASSISTANT, null, station);
|
||||
this.addRole(simulation, SimulationMember.Type.STATION_MASTER, null, station);
|
||||
this.addRole(simulation, SimulationMember.Type.STATION_SIGNALER, null, station);
|
||||
this.addRole(simulation, SimulationMember.Type.STATION_PASSENGER, null, station);
|
||||
this.addRole(simulation, SimulationMember.Type.STATION_SWITCH_MAN, null, station);
|
||||
this.addRole(simulation, SimulationMember.Type.STATION_FACILITATOR, null, station);
|
||||
this.addRole(simulation, SimulationMember.Type.STATION_WORKER, null, station);
|
||||
this.addRole(simulation, SimulationMember.Type.DEVICE_MANAGER);
|
||||
Arrays.asList(
|
||||
SimulationMember.Type.STATION_ASSISTANT, SimulationMember.Type.STATION_MASTER,
|
||||
SimulationMember.Type.STATION_SIGNALER, SimulationMember.Type.STATION_PASSENGER,
|
||||
SimulationMember.Type.STATION_SWITCH_MAN, SimulationMember.Type.STATION_FACILITATOR,
|
||||
SimulationMember.Type.STATION_WORKER
|
||||
).forEach(type -> this.addRole(simulation, type, station.getName(), station));
|
||||
}
|
||||
}
|
||||
// 司机
|
||||
|
@ -177,6 +177,8 @@ public class SimulationMember extends club.joylink.rtss.simulation.SimulationMem
|
||||
STATION_FACILITATOR,
|
||||
/*** 车站工务工*/
|
||||
STATION_WORKER,
|
||||
/*** 设备管理员 **/
|
||||
DEVICE_MANAGER,
|
||||
}
|
||||
|
||||
public enum Gender {
|
||||
|
Loading…
Reference in New Issue
Block a user