Mercurial > hg > RemoteEditor > REPSessionManager
comparison rep/PacketSet.java @ 450:21cb16b7f3df
block message in Editor.write()
author | one |
---|---|
date | Thu, 23 Sep 2010 18:15:37 +0900 |
parents | 29f01a7ce71f |
children |
comparison
equal
deleted
inserted
replaced
449:89a326696c54 | 450:21cb16b7f3df |
---|---|
1 package rep; | 1 package rep; |
2 | 2 |
3 import rep.channel.REPSocketChannel; | |
4 import rep.handler.REPNode; | 3 import rep.handler.REPNode; |
5 | 4 |
6 public class PacketSet { | 5 public class PacketSet { |
7 | 6 |
8 public REPSocketChannel<REPCommand> channel; | 7 public REPNode channel; |
9 public REPNode editor; | |
10 public REPCommand command; | 8 public REPCommand command; |
11 | 9 |
12 public PacketSet(REPSocketChannel<REPCommand> channel, REPNode editor, REPCommand command) { | 10 public PacketSet(REPNode editor, REPCommand command) { |
13 this.channel = channel; | 11 this.channel = editor; |
14 this.editor = editor; | |
15 this.command = command; | 12 this.command = command; |
16 } | 13 } |
17 | 14 |
18 public REPNode getEditor() { | 15 public REPNode getEditor() { |
19 return editor; | 16 return channel; |
20 } | 17 } |
21 | 18 |
22 public String toString() { | 19 public String toString() { |
23 return "PacketSet("+command.toString()+","+editor+")"; | 20 return "PacketSet("+command.toString()+","+channel+")"; |
24 } | 21 } |
25 | 22 |
26 } | 23 } |