Mercurial > hg > RemoteEditor > REPSessionManager
annotate rep/REPCommand.java @ 471:d2762d669617
sleep command to wait for singleton prevention
author | one |
---|---|
date | Tue, 12 Oct 2010 10:19:59 +0900 |
parents | 4b87f89b3afd |
children | 7420dea70dd7 |
rev | line source |
---|---|
0 | 1 package rep; |
2 | |
144 | 3 import rep.REP; |
141 | 4 |
0 | 5 public class REPCommand { |
271 | 6 public REP cmd; |
0 | 7 public int sid; |
8 public int eid; | |
9 public int seq; | |
10 public int len; | |
11 public int lineno; | |
141 | 12 |
0 | 13 public String string; |
14 | |
284 | 15 public REPCommand(REP cmd,int sid,int eid, int seq, int lineno, String string) { |
0 | 16 this.cmd = cmd; |
17 this.sid = sid; | |
18 this.eid = eid; | |
19 this.seq = seq; | |
20 this.lineno = lineno; | |
21 this.string = string; | |
141 | 22 } |
382
4b87f89b3afd
REP Session Manager (Java version)
one@firefly.cr.ie.u-ryukyu.ac.jp
parents:
341
diff
changeset
|
23 |
141 | 24 public REPCommand(REPCommand cmd){ |
339 | 25 this(cmd.cmd, cmd.sid, cmd.eid, cmd.seq, cmd.lineno, cmd.string); |
0 | 26 } |
27 | |
25 | 28 public REPCommand() { |
29 } | |
341 | 30 |
271 | 31 public REPCommand(int cmd, int sid, int eid, int seq, int lineno, |
32 int textsiz, String string) { | |
33 this.cmd = REP.newREP(cmd); | |
34 this.sid = sid; | |
35 this.eid = eid; | |
36 this.seq = seq; | |
37 this.lineno = lineno; | |
38 this.string = string; | |
39 } | |
40 | |
0 | 41 public String toString(){ |
339 | 42 String repCmdString = cmd + ",sid=" + sid + ",eid=" + eid + ",seq=" + seq + |
340 | 43 ",lineno=" + lineno ; |
44 if (string!=null) repCmdString += ",sz=" + string.length() +"," + string; | |
0 | 45 return repCmdString; |
46 } | |
47 | |
48 public void setEID(int eid2) { | |
49 this.eid = eid2; | |
50 } | |
51 | |
271 | 52 public void setCMD(REP cmd2) { |
0 | 53 this.cmd = cmd2; |
54 } | |
55 | |
56 public void setSID(int sessionID) { | |
57 this.sid = sessionID; | |
58 } | |
1 | 59 |
12 | 60 public void setString(String string2) { |
61 string = string2; | |
62 } | |
63 | |
141 | 64 public void setSEQID(int i) { |
65 seq = i; | |
75 | 66 } |
17 | 67 |
0 | 68 } |