充放电一体机FGCD通信程序【二期初版】
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
package com.dev.fgcd.fbo;
 
import java.util.Date;
 
public class FBOFileParseState {
    public static final int ParseType_Null         = 0;
    public static final int ParseType_Start     = 1;
    public static final int ParseType_Success    = 2;
    public static final int ParseType_Fail         = 3;
    
    
    public int fbo_id;
    public String fbo_filepath;                        //'fbo文件目录[绝对路径]',
    public int parse_type;                            //'解析类型0:暂不解析ï¼?1:å¼?始解析;2:解析完成;3:解析失败',
    public Date parse_starttime;                    //'å¼?始解析时é—?',
    public Date parse_endtime;                        //'解析结束时间',
    public int faile_reason;                        //'解析失败原因:0:æ—?;1:文件未找åˆ?;2:文件格式错误;3文件解析错误',
    public FboDataInf fboinf;                        //历史数据解析
    
    public FBOFileParseState(int fbo_id){
        this.fbo_id = fbo_id;
        fboinf = new FboDataInf();
    }
    
    public int getFbo_id() {
        return fbo_id;
    }
    public String getFbo_filepath() {
        return fbo_filepath;
    }
    public int getParse_type() {
        return parse_type;
    }
    public Date getParse_starttime() {
        return parse_starttime;
    }
    public Date getParse_endtime() {
        return parse_endtime;
    }
    public int getFaile_reason() {
        return faile_reason;
    }
    public FboDataInf getFboinf() {
        return fboinf;
    }
    public void setFbo_id(int fbo_id) {
        this.fbo_id = fbo_id;
    }
    public void setFbo_filepath(String fbo_filepath) {
        this.fbo_filepath = fbo_filepath;
    }
    public void setParse_type(int parse_type) {
        this.parse_type = parse_type;
    }
    public void setParse_starttime(Date parse_starttime) {
        this.parse_starttime = parse_starttime;
    }
    public void setParse_endtime(Date parse_endtime) {
        this.parse_endtime = parse_endtime;
    }
    public void setFaile_reason(int faile_reason) {
        this.faile_reason = faile_reason;
    }
    public void setFboinf(FboDataInf fboinf) {
        this.fboinf = fboinf;
    }
 
    @Override
    public String toString() {
        return "FBOFileParseState [fbo_id=" + fbo_id + ", fbo_filepath=" + fbo_filepath + ", parse_type=" + parse_type
                + ", parse_starttime=" + parse_starttime + ", parse_endtime=" + parse_endtime + ", faile_reason="
                + faile_reason + ", fboinf=" + fboinf + "]";
    }
}