All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.allbs.hj212.model.Pack Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
package cn.allbs.hj212.model;

/**
 * 功能: 通信包
 *
 * @author chenQi
 */
public class Pack {

    private char[] header = new char[2];
    private char[] length = new char[4];
    private char[] segment = new char[1024];
    private char[] crc = new char[4];
    private char[] footer = new char[2];

    public char[] getHeader() {
        return header;
    }

    public void setHeader(char[] header) {
        this.header = header;
    }

    public char[] getLength() {
        return length;
    }

    public void setLength(char[] length) {
        this.length = length;
    }

    public char[] getSegment() {
        return segment;
    }

    public void setData(char[] segment) {
        this.segment = segment;
    }

    public char[] getCrc() {
        return crc;
    }

    public void setCrc(char[] crc) {
        this.crc = crc;
    }

    public char[] getFooter() {
        return footer;
    }

    public void setFooter(char[] footer) {
        this.footer = footer;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy