0
|
1 package rep;
|
|
2
|
|
3 public class REPCommand {
|
|
4 public int cmd;
|
|
5 public int sid;
|
|
6 public int eid;
|
|
7 public int seq;
|
|
8 public int len;
|
|
9 public int lineno;
|
|
10 public boolean stat;
|
|
11
|
|
12 public String string;
|
|
13 private int textsiz;
|
|
14
|
|
15 public REPCommand(int cmd,int sid,int eid, int seq, int lineno, int textsiz, String string) {
|
|
16 this.cmd = cmd;
|
|
17 this.sid = sid;
|
|
18 this.eid = eid;
|
|
19 this.seq = seq;
|
|
20 this.textsiz = textsiz;
|
|
21 this.lineno = lineno;
|
|
22 this.string = string;
|
|
23 }
|
|
24
|
|
25 public String toString(){
|
|
26 String repCmdString = new String(cmd + "," + sid + "," + eid + "," + seq + "," + lineno + "," + textsiz + "," + string);
|
|
27 return repCmdString;
|
|
28 }
|
|
29
|
|
30 public void setEID(int eid2) {
|
|
31 // TODO Auto-generated method stub
|
|
32 this.eid = eid2;
|
|
33 }
|
|
34
|
|
35 public void setCMD(int cmd2) {
|
|
36 // TODO Auto-generated method stub
|
|
37 this.cmd = cmd2;
|
|
38 }
|
|
39
|
|
40 public void setSID(int sessionID) {
|
|
41 // TODO Auto-generated method stub
|
|
42 this.sid = sessionID;
|
|
43 }
|
|
44 }
|