【设备管理员】
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.stereotype.Component;
|
||||||
import org.springframework.util.StringUtils;
|
import org.springframework.util.StringUtils;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
@ -51,13 +52,13 @@ public class MemberManager {
|
|||||||
// 大铁CTC
|
// 大铁CTC
|
||||||
if (simulation.getRepository().getConfig().isRailway()) {
|
if (simulation.getRepository().getConfig().isRailway()) {
|
||||||
// this.addRole(simulation, SimulationMember.Type.RAIL_CTC, null, station);
|
// this.addRole(simulation, SimulationMember.Type.RAIL_CTC, null, station);
|
||||||
this.addRole(simulation, SimulationMember.Type.STATION_ASSISTANT, null, station);
|
this.addRole(simulation, SimulationMember.Type.DEVICE_MANAGER);
|
||||||
this.addRole(simulation, SimulationMember.Type.STATION_MASTER, null, station);
|
Arrays.asList(
|
||||||
this.addRole(simulation, SimulationMember.Type.STATION_SIGNALER, null, station);
|
SimulationMember.Type.STATION_ASSISTANT, SimulationMember.Type.STATION_MASTER,
|
||||||
this.addRole(simulation, SimulationMember.Type.STATION_PASSENGER, null, station);
|
SimulationMember.Type.STATION_SIGNALER, SimulationMember.Type.STATION_PASSENGER,
|
||||||
this.addRole(simulation, SimulationMember.Type.STATION_SWITCH_MAN, null, station);
|
SimulationMember.Type.STATION_SWITCH_MAN, SimulationMember.Type.STATION_FACILITATOR,
|
||||||
this.addRole(simulation, SimulationMember.Type.STATION_FACILITATOR, null, station);
|
SimulationMember.Type.STATION_WORKER
|
||||||
this.addRole(simulation, SimulationMember.Type.STATION_WORKER, null, station);
|
).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_FACILITATOR,
|
||||||
/*** 车站工务工*/
|
/*** 车站工务工*/
|
||||||
STATION_WORKER,
|
STATION_WORKER,
|
||||||
|
/*** 设备管理员 **/
|
||||||
|
DEVICE_MANAGER,
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum Gender {
|
public enum Gender {
|
||||||
|
Loading…
Reference in New Issue
Block a user