Stat.java
2.19 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
package th.co.ais.ssbsrfc.instance;
import th.co.ais.ssbsrfc.config.Constant;
public class Stat {
private String currentSubState = null;
private int sendOrReceive;
private int responseOrRequest;
private int type;
private String message;
private String command = null;
private String name = null;
public Stat(String currentSubState, int sendOrReceive, int responseOrRequest) {
super();
this.currentSubState = currentSubState;
this.sendOrReceive = sendOrReceive;
this.responseOrRequest = responseOrRequest;
this.type = Constant.TYPE_SUCCESS;
this.message = "";
}
public Stat(String currentSubState, int sendOrReceive,
int responseOrRequest, int type, String message) {
super();
this.currentSubState = currentSubState;
this.sendOrReceive = sendOrReceive;
this.responseOrRequest = responseOrRequest;
this.type = type;
this.message = message;
}
public Stat(String currentSubState, int sendOrReceive,
int responseOrRequest, int type, String message, String command) {
super();
this.currentSubState = currentSubState;
this.sendOrReceive = sendOrReceive;
this.responseOrRequest = responseOrRequest;
this.type = type;
this.message = message;
this.command = command;
}
public Stat(String name) {
super();
this.name = name;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getCurrentSubState() {
return currentSubState;
}
public void setCurrentSubState(String currentSubState) {
this.currentSubState = currentSubState;
}
public int getSendOrReceive() {
return sendOrReceive;
}
public void setSendOrReceive(int sendOrReceive) {
this.sendOrReceive = sendOrReceive;
}
public int getResponseOrRequest() {
return responseOrRequest;
}
public void setResponseOrRequest(int responseOrRequest) {
this.responseOrRequest = responseOrRequest;
}
public int getType() {
return type;
}
public void setType(int type) {
this.type = type;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public String getCommand() {
return command;
}
public void setCommand(String command) {
this.command = command;
}
}