| | |
| | | package com.zy.acs.gateway.domain; |
| | | package com.example.agvcontroller.protocol; |
| | | |
| | | import com.zy.acs.gateway.constant.EncryType; |
| | | import com.zy.acs.gateway.constant.ProtocolType; |
| | | import lombok.Data; |
| | | import org.apache.commons.lang.builder.ToStringBuilder; |
| | | |
| | | /** |
| | | * 协议头 |
| | | * Created by vincent on 2019-04-03 |
| | | */ |
| | | @Data |
| | | public class PacHeader { |
| | | |
| | | /** |
| | |
| | | return this; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this) |
| | | .append("startSymbol", startSymbol) |
| | | .append("contentLength", contentLength) |
| | | .append("uniqueNo", uniqueNo) |
| | | .append("timestamp", timestamp) |
| | | .append("protocolType", protocolType.getDes()) |
| | | .append("serialNum", serialNum) |
| | | .toString(); |
| | | } |
| | | //@Override |
| | | //public String toString() { |
| | | // return new ToStringBuilder(this) |
| | | // .append("startSymbol", startSymbol) |
| | | // .append("contentLength", contentLength) |
| | | // .append("uniqueNo", uniqueNo) |
| | | // .append("timestamp", timestamp) |
| | | // .append("protocolType", protocolType.getDes()) |
| | | // .append("serialNum", serialNum) |
| | | // .toString(); |
| | | //} |
| | | } |