添加相关注释

This commit is contained in:
zhouxiunai
2018-12-26 09:13:02 +08:00
parent b055729147
commit c33e44e4f1
2 changed files with 179 additions and 116 deletions
@@ -320,183 +320,242 @@ public class SCHD
private final static long serialVersionUID = 1L; private final static long serialVersionUID = 1L;
@XmlElement(name = "FLID", required = true) @XmlElement(name = "FLID", required = true)
@JsonProperty("FLID") @JsonProperty("FLID")
protected BigInteger flid; protected BigInteger flid;//航班id
@XmlElement(name = "ALCD", required = true) @XmlElement(name = "ALCD", required = true)
@JsonProperty("ALCD") @JsonProperty("ALCD")
protected String alcd; protected String alcd;//airline code 航空公司代码
@XmlElement(name = "ALSC") @XmlElement(name = "ALSC")
@JsonProperty("ALSC") @JsonProperty("ALSC")
protected String alsc; protected String alsc;//airline subcompany code 航空公司子公司代码
@XmlElement(name = "FLNO", required = true) @XmlElement(name = "FLNO", required = true)
@JsonProperty("FLNO") @JsonProperty("FLNO")
protected String flno; protected String flno;//flight number 航班号
@XmlElement(name = "MVIN", required = true) @XmlElement(name = "MVIN", required = true)
@JsonProperty("MVIN") @JsonProperty("MVIN")
@XmlSchemaType(name = "string") @XmlSchemaType(name = "string")
protected MOVEMENTINDICATOR mvin; protected MOVEMENTINDICATOR mvin;//movement indicator 运行标识
@XmlElement(name = "SODT", required = true) @XmlElement(name = "SODT", required = true)
@JsonProperty("SODT") @JsonProperty("SODT")
protected String sodt; protected String sodt;//航班计划日期/时间 STA 到达 ,STD 离港
@XmlElement(name = "FLTY", required = true) @XmlElement(name = "FLTY", required = true)
@JsonProperty("FLTY") @JsonProperty("FLTY")
protected String flty; protected String flty;//航班类型如客机、货机、军用、VIP等
@XmlElement(name = "FLIN", required = true) @XmlElement(name = "FLIN", required = true)
@JsonProperty("FLIN") @JsonProperty("FLIN")
@XmlSchemaType(name = "string") @XmlSchemaType(name = "string")
protected DOMINTMIXRGNCODE flin; protected DOMINTMIXRGNCODE flin;//Flight indicator 航班标识
@XmlElement(name = "ROUT", required = true) @XmlElement(name = "ROUT", required = true)
@JsonProperty("ROUT") @JsonProperty("ROUT")
protected List<ROUTEDAILY> rout; protected List<ROUTEDAILY> rout;//航线
@XmlElement(name = "ACFT", required = true) @XmlElement(name = "ACFT", required = true)
@JsonProperty("ACFT") @JsonProperty("ACFT")
protected String acft; protected String acft;//Aircraft type 航班使用的机型
@XmlElement(name = "RENO") @XmlElement(name = "RENO")
@JsonProperty("RENO") @JsonProperty("RENO")
protected String reno; protected String reno;//Registration or tail number of flight 航班注册号或尾号
@XmlElement(name = "TAOP") @XmlElement(name = "TAOP")
@JsonProperty("TAOP") @JsonProperty("TAOP")
protected String taop; protected String taop;//Turnaround operator 承运人
@XmlElement(name = "TAFL") @XmlElement(name = "TAFL")
@JsonProperty("TAFL") @JsonProperty("TAFL")
protected String tafl; protected String tafl;//Turnaround flight number 承运航班号
@XmlElement(name = "TAID") @XmlElement(name = "TAID")
@JsonProperty("TAID") @JsonProperty("TAID")
protected BigInteger taid; protected BigInteger taid;// 后接飞航班唯一的AODB ID
@XmlElement(name = "TRML") @XmlElement(name = "TRML")
@JsonProperty("TRML") @JsonProperty("TRML")
protected String trml; protected String trml;// Terminal 航班航站楼
@XmlElement(name = "MAXP") @XmlElement(name = "MAXP")
@JsonProperty("MAXP") @JsonProperty("MAXP")
protected BigInteger maxp; protected BigInteger maxp;//Maximum passengers 该航班最大载客数
@XmlElement(name = "CSOP") @XmlElement(name = "CSOP")
@JsonProperty("CSOP") @JsonProperty("CSOP")
protected String csop; protected String csop;//code share flight Operator 共享航班的主航班承运人代码
@XmlElement(name = "CSFT") @XmlElement(name = "CSFT")
@JsonProperty("CSFT") @JsonProperty("CSFT")
protected String csft; protected String csft;//code share flight Flight number 共享航班的主航班号
@XmlElement(name = "MAID") @XmlElement(name = "MAID")
@JsonProperty("MAID") @JsonProperty("MAID")
protected BigInteger maid; protected BigInteger maid;//代码共享航班的主航班的唯一的master flight AODB ID
@XmlElement(name = "ESTT") @XmlElement(name = "ESTT")
@JsonProperty("ESTT") @JsonProperty("ESTT")
protected String estt; protected String estt;//Estimated time of flight. 预计时间
@XmlElement(name = "ACTT") @XmlElement(name = "ACTT")
@JsonProperty("ACTT") @JsonProperty("ACTT")
protected String actt; protected String actt;//Actual time of flight. 实际时间
@XmlElement(name = "CHDT") @XmlElement(name = "CHDT")
@JsonProperty("CHDT") @JsonProperty("CHDT")
protected List<CHUTEDATA> chdt; protected List<CHUTEDATA> chdt;//chutes 多行李传送带数据
@XmlElement(name = "GTDT") @XmlElement(name = "GTDT")
@JsonProperty("GTDT") @JsonProperty("GTDT")
protected List<GATEDATA> gtdt; protected List<GATEDATA> gtdt;//gate data 航班登机门数据
@XmlElement(name = "STND") @XmlElement(name = "STND")
@JsonProperty("STND") @JsonProperty("STND")
protected String stnd; protected String stnd;// stand 航班当前停机位位置
@XmlElement(name = "PSDT") @XmlElement(name = "PSDT")
@JsonProperty("PSDT") @JsonProperty("PSDT")
protected List<STANDDATA> psdt; protected List<STANDDATA> psdt;//航班计划机位数据 plan stand data
@XmlElement(name = "CKDT") @XmlElement(name = "CKDT")
@JsonProperty("CKDT") @JsonProperty("CKDT")
protected List<DESKDATA> ckdt; protected List<DESKDATA> ckdt;// check in counter data 值机位数据
@XmlElement(name = "PHAG") @XmlElement(name = "PHAG")
@JsonProperty("PHAG") @JsonProperty("PHAG")
protected BigInteger phag; protected BigInteger phag;//Passenger handling agent for flight 航班旅客处理柜员
@XmlElement(name = "CNCL") @XmlElement(name = "CNCL")
@JsonProperty("CNCL") @JsonProperty("CNCL")
protected String cncl; protected String cncl;//取消日期时间
@XmlElement(name = "DELY") @XmlElement(name = "DELY")
@JsonProperty("DELY") @JsonProperty("DELY")
protected List<DELAYDATA> dely; protected List<DELAYDATA> dely;//延误信息数据
@XmlElement(name = "REMC") @XmlElement(name = "REMC")
@JsonProperty("REMC") @JsonProperty("REMC")
protected String remc; protected String remc;// remarks 文本注释
@XmlElement(name = "CLDT") @XmlElement(name = "CLDT")
@JsonProperty("CLDT") @JsonProperty("CLDT")
protected List<BELTDATA> cldt; protected List<BELTDATA> cldt;//航班的行李传送转盘数据
@XmlElement(name = "BOTM") @XmlElement(name = "BOTM")
@JsonProperty("BOTM") @JsonProperty("BOTM")
protected String botm; protected String botm;//Boarding open time 离港航班登机开始时间
@XmlElement(name = "LACL") @XmlElement(name = "LACL")
@JsonProperty("LACL") @JsonProperty("LACL")
protected String lacl; protected String lacl;// last call 离港航班最后通知时间
@XmlElement(name = "FINT") @XmlElement(name = "FINT")
@JsonProperty("FINT") @JsonProperty("FINT")
protected String fint; protected String fint;//Finals Time. 最终时间。
@XmlElement(name = "CHOT") @XmlElement(name = "CHOT")
@JsonProperty("CHOT") @JsonProperty("CHOT")
protected List<CHOCKSDATA> chot; protected List<CHOCKSDATA> chot;// chocks time 轮挡时间数据
@XmlElement(name = "APPT") @XmlElement(name = "APPT")
@JsonProperty("APPT") @JsonProperty("APPT")
protected String appt; protected String appt;//Approved time for departures 批准的离港时间
@XmlElement(name = "EGSR") @XmlElement(name = "EGSR")
@JsonProperty("EGSR") @JsonProperty("EGSR")
protected String egsr; protected String egsr;//Engine start request for departures 离港时引擎发动请求
@XmlElement(name = "EGST") @XmlElement(name = "EGST")
@JsonProperty("EGST") @JsonProperty("EGST")
protected String egst; protected String egst;//Engine start time for departures 离港引擎发动时间
@XmlElement(name = "FHAG") @XmlElement(name = "FHAG")
@JsonProperty("FHAG") @JsonProperty("FHAG")
protected BigInteger fhag; protected BigInteger fhag;//Field (or Ground) Handling agent for flight. 航班的机坪(或外场)处理代理
@XmlElement(name = "MHAG") @XmlElement(name = "MHAG")
@JsonProperty("MHAG") @JsonProperty("MHAG")
protected BigInteger mhag; protected BigInteger mhag;//Maintenance Handling agent for flight. 航班维护处理代理
@XmlElement(name = "VIPP") @XmlElement(name = "VIPP")
@JsonProperty("VIPP") @JsonProperty("VIPP")
protected BigInteger vipp; protected BigInteger vipp;//VIP passengers.当前航班的VIP旅客数
@XmlElement(name = "VIPR") @XmlElement(name = "VIPR")
@JsonProperty("VIPR") @JsonProperty("VIPR")
protected BigInteger vipr; protected BigInteger vipr;//VIP航班等级标志 一个单一数字表示VIP的 等级
@XmlElement(name = "FDIV") @XmlElement(name = "FDIV")
@JsonProperty("FDIV") @JsonProperty("FDIV")
protected DIVERSIONDATA fdiv; protected DIVERSIONDATA fdiv;//0表示不是VIP航 班
@XmlElement(name = "FRET") @XmlElement(name = "FRET")
@JsonProperty("FRET") @JsonProperty("FRET")
protected RETURNDATA fret; protected RETURNDATA fret;//flight has returned 航班返回原因描述
@XmlElement(name = "ABTM") @XmlElement(name = "ABTM")
@JsonProperty("ABTM") @JsonProperty("ABTM")
protected List<BRIDGEDATA> abtm; protected List<BRIDGEDATA> abtm;//Air bridge time 登机桥时间数据
@XmlElement(name = "FLAB") @XmlElement(name = "FLAB")
@JsonProperty("FLAB") @JsonProperty("FLAB")
protected ABORTDATA flab; protected ABORTDATA flab;// flights landing has been aborted.航班着陆中止原因的描述
@XmlElement(name = "SRVT") @XmlElement(name = "SRVT")
@JsonProperty("SRVT") @JsonProperty("SRVT")
protected List<SERVICEDATA> srvt; protected List<SERVICEDATA> srvt;//service 服务数据
@XmlElement(name = "VIPF") @XmlElement(name = "VIPF")
@JsonProperty("VIPF") @JsonProperty("VIPF")
protected List<VIPDATA> vipf; protected List<VIPDATA> vipf;//VIP 数据
@XmlElement(name = "LBNO") @XmlElement(name = "LBNO")
@JsonProperty("LBNO") @JsonProperty("LBNO")
protected BigInteger lbno; protected BigInteger lbno;//No of local bags 离港航班本地值机行李件数
@XmlElement(name = "LBWT") @XmlElement(name = "LBWT")
@JsonProperty("LBWT") @JsonProperty("LBWT")
protected BigDecimal lbwt; protected BigDecimal lbwt;//Total local checked in bag weight for departure flights 离港航班本地值机行李总重量
@XmlElement(name = "PAXC") @XmlElement(name = "PAXC")
@JsonProperty("PAXC") @JsonProperty("PAXC")
protected BigInteger paxc; protected BigInteger paxc;//Total number of passengers on the flight 航班旅客总数
@XmlElement(name = "ERUT", required = true) @XmlElement(name = "ERUT", required = true)
@JsonProperty("ERUT") @JsonProperty("ERUT")
protected List<ROUTEDAILY> erut; protected List<ROUTEDAILY> erut;//完整航线的细节信息 和 rout 有区别
@XmlElement(name = "EXSC") @XmlElement(name = "EXSC")
@JsonProperty("EXSC") @JsonProperty("EXSC")
protected String exsc; protected String exsc;//Flight external status code 航班外部状态代码
@XmlElement(name = "EXSR") @XmlElement(name = "EXSR")
@JsonProperty("EXSR") @JsonProperty("EXSR")
protected String exsr; protected String exsr;//Flight external status remarks 航班外部状态备注
@XmlElement(name = "FTSS", required = true) @XmlElement(name = "FTSS", required = true)
@JsonProperty("FTSS") @JsonProperty("FTSS")
protected String ftss; protected String ftss;//Flight status 航班状态
@XmlElement(name = "PEDT") @XmlElement(name = "PEDT")
@JsonProperty("PEDT") @JsonProperty("PEDT")
protected String pedt; protected String pedt;
@XmlElement(name = "NEAT") @XmlElement(name = "NEAT")
@JsonProperty("NEAT") @JsonProperty("NEAT")
protected String neat; protected String neat;
@XmlElement(name = "PADT") @XmlElement(name = "PADT")
@JsonProperty("PADT") @JsonProperty("PADT")
protected String padt; protected String padt;//Actual departure time for previous step. 前站实际起飞时间
@XmlElement(name = "NAAT") @XmlElement(name = "NAAT")
@JsonProperty("NAAT") @JsonProperty("NAAT")
protected String naat; protected String naat;
/** /**
@@ -6,7 +6,11 @@ import org.slf4j.LoggerFactory;
import com.gzzn.omms.msgexchangeapi.entity.msg.FLOP; import com.gzzn.omms.msgexchangeapi.entity.msg.FLOP;
import com.gzzn.omms.msgexchangeapi.entity.msg.SCHD; import com.gzzn.omms.msgexchangeapi.entity.msg.SCHD;
import com.gzzn.omms.msgexchangeapi.msghandler.flop.base.FlopBaseHandler; import com.gzzn.omms.msgexchangeapi.msghandler.flop.base.FlopBaseHandler;
/**
* 航班登机,旅客和行李事件
* @author zhouxiunai
*
*/
public class BDPBHandler extends FlopBaseHandler { public class BDPBHandler extends FlopBaseHandler {
private static Logger logger = LoggerFactory.getLogger(BDPBHandler.class); private static Logger logger = LoggerFactory.getLogger(BDPBHandler.class);