info.gratour.jt808core.protocol.JT808FrameHeader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jt-core Show documentation
Show all versions of jt-core Show documentation
`jt-core` is a java/scala communication processing library for JT808/JT809/JT1078 standard.
The newest version!
package info.gratour.jt808core.protocol;
import info.gratour.jtcommon.JTUtils;
public class JT808FrameHeader {
private int msgId;
private int attr;
private String simNo;
private int seqNo;
private FrameSplitInfo splitInfo;
public int getMsgId() {
return msgId;
}
public void setMsgId(int msgId) {
this.msgId = msgId;
}
public int getAttr() {
return attr;
}
public void setAttr(int attr) {
this.attr = attr;
}
public String getSimNo() {
return simNo;
}
public void setSimNo(String simNo) {
this.simNo = simNo;
}
public int getSeqNo() {
return seqNo;
}
public void setSeqNo(int seqNo) {
this.seqNo = seqNo;
}
public boolean isSplit() {
return splitInfo != null;
}
public FrameSplitInfo getSplitInfo() {
return splitInfo;
}
public void setSplitInfo(FrameSplitInfo splitInfo) {
this.splitInfo = splitInfo;
}
@Override
public String toString() {
return "JT808FrameHeader{" +
"msgId=" + JTUtils.msgIdToHex(msgId) +
", attr=" + attr +
", simNo='" + simNo + '\'' +
", seqNo=" + seqNo +
", splitInfo=" + splitInfo +
'}';
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy