Demo entry 6771636

burden

   

Submitted by anonymous on Nov 20, 2018 at 04:02
Language: Java. Code size: 2.4 kB.

public class Packet {
    private char firstStartChar; //起始字符
    private int firstLength; //长度
    private int secondLength; //长度
    private char secondStartChar; //起始字符
    private String control; //控制域
    private String address; //地址域
    private char afn;
    private char seq;
    private String dataId; //数据单元标识
    private int number; //表数量
    List<Meter> meter;
    private char cs;
    private char endChar; //结束字符
    public char getFirstStartChar() {
        return firstStartChar;
    }
    public void setFirstStartChar(char firstStartChar) {
        this.firstStartChar = firstStartChar;
    }
    public int getFirstLength() {
        return firstLength;
    }
    public void setFirstLength(int firstLength) {
        this.firstLength = firstLength;
    }
    public int getSecondLength() {
        return secondLength;
    }
    public void setSecondLength(int secondLength) {
        this.secondLength = secondLength;
    }
    public char getSecondStartChar() {
        return secondStartChar;
    }
    public void setSecondStartChar(char secondStartChar) {
        this.secondStartChar = secondStartChar;
    }
    public String getControl() {
        return control;
    }
    public void setControl(String control) {
        this.control = control;
    }
    public String getAddress() {
        return address;
    }
    public void setAddress(String address) {
        this.address = address;
    }
    public char getAfn() {
        return afn;
    }
    public void setAfn(char afn) {
        this.afn = afn;
    }
    public char getSeq() {
        return seq;
    }
    public void setSeq(char seq) {
        this.seq = seq;
    }
    public String getDataId() {
        return dataId;
    }
    public void setDataId(String dataId) {
        this.dataId = dataId;
    }
    public int getNumber() {
        return number;
    }
    public void setNumber(int number) {
        this.number = number;
    }
    public List<Meter> getMeter() {
        return meter;
    }
    public void setMeter(List<Meter> meter) {
        this.meter = meter;
    }
    public char getCs() {
        return cs;
    }
    public void setCs(char cs) {
        this.cs = cs;
    }
    public char getEndChar() {
        return endChar;
    }
    public void setEndChar(char endChar) {
        this.endChar = endChar;
    }
}

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).