调度命令

This commit is contained in:
xzb 2022-09-08 15:15:24 +08:00
parent c9538a39be
commit 8ff182e6e7

View File

@ -1,11 +1,7 @@
package club.joylink.rtss.simulation.cbtc.CTC.rail.cmd.vo; package club.joylink.rtss.simulation.cbtc.CTC.rail.cmd.vo;
import club.joylink.rtss.simulation.cbtc.CTC.rail.cmd.DisCmd; import club.joylink.rtss.simulation.cbtc.CTC.rail.cmd.DisCmd;
import club.joylink.rtss.simulation.cbtc.CTC.rail.cmd.DisCmdRcvCompany;
import club.joylink.rtss.simulation.cbtc.CTC.rail.cmd.DisCmdSendCompany;
import club.joylink.rtss.util.JsonUtils;
import lombok.Data; import lombok.Data;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@ -72,28 +68,5 @@ public class DisCmdSrcVo {
* 受令单位列表 * 受令单位列表
*/ */
private List<DisCmdRcvCompanyVo> rcvCompanies = new ArrayList<>(); private List<DisCmdRcvCompanyVo> rcvCompanies = new ArrayList<>();
public static void main(String []args){
DisCmdSrcVo v = new DisCmdSrcVo();
v.setCode("2");
v.setContent("我是调度命令测试11");
v.setTitle("测试11");
v.setType(DisCmd.Type.Normal.name());
v.setSender("wo");
//
DisCmdSendCompanyVo s = new DisCmdSendCompanyVo();
s.setDisCmdCode(v.getCode());
s.setName("标准站调度台");
s.setType(DisCmdSendCompany.Type.Dispatcher.name());
s.setCode("dis123");
//
v.setSendCompany(s);
DisCmdRcvCompanyVo r = new DisCmdRcvCompanyVo();
r.setType(DisCmdRcvCompany.Type.Station.name());
r.setStationCode("station123");
r.setName("标准丙站");
v.getRcvCompanies().add(r);
//
String js =JsonUtils.writeValueAsString(v);
System.out.println(js);
}
} }