annotate rep/translater/Translater.java @ 144:0bf7f8d0f5f7

*** empty log message ***
author pin
date Wed, 27 Aug 2008 22:55:43 +0900
parents 6f15a8880ed8
children 4d9b32666ed2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
141
6f15a8880ed8 *** empty log message ***
pin
parents:
diff changeset
1 package rep.translater;
6f15a8880ed8 *** empty log message ***
pin
parents:
diff changeset
2
6f15a8880ed8 *** empty log message ***
pin
parents:
diff changeset
3 import rep.REPCommand;
6f15a8880ed8 *** empty log message ***
pin
parents:
diff changeset
4
6f15a8880ed8 *** empty log message ***
pin
parents:
diff changeset
5 public interface Translater {
6f15a8880ed8 *** empty log message ***
pin
parents:
diff changeset
6
6f15a8880ed8 *** empty log message ***
pin
parents:
diff changeset
7 /**
6f15a8880ed8 *** empty log message ***
pin
parents:
diff changeset
8 * Translate command When the editor send REPCommand to remote editor.
6f15a8880ed8 *** empty log message ***
pin
parents:
diff changeset
9 * @param command which the editor want to send.
6f15a8880ed8 *** empty log message ***
pin
parents:
diff changeset
10 * @return translated command which should be sent by the editor.
6f15a8880ed8 *** empty log message ***
pin
parents:
diff changeset
11 */
6f15a8880ed8 *** empty log message ***
pin
parents:
diff changeset
12 abstract public REPCommand transSendCmd(REPCommand cmd);
6f15a8880ed8 *** empty log message ***
pin
parents:
diff changeset
13
6f15a8880ed8 *** empty log message ***
pin
parents:
diff changeset
14 /**
6f15a8880ed8 *** empty log message ***
pin
parents:
diff changeset
15 * Inform translater about that the editor receive own command which it sent.
6f15a8880ed8 *** empty log message ***
pin
parents:
diff changeset
16 * but in this case, you can use also transReceiveCmd()
6f15a8880ed8 *** empty log message ***
pin
parents:
diff changeset
17 * @param command which the editor sent.
6f15a8880ed8 *** empty log message ***
pin
parents:
diff changeset
18 */
6f15a8880ed8 *** empty log message ***
pin
parents:
diff changeset
19 abstract public REPCommand[] catchOwnCommand(REPCommand cmd);
6f15a8880ed8 *** empty log message ***
pin
parents:
diff changeset
20
6f15a8880ed8 *** empty log message ***
pin
parents:
diff changeset
21 /**
6f15a8880ed8 *** empty log message ***
pin
parents:
diff changeset
22 * Translate Command cmd that was received from SeMa.
6f15a8880ed8 *** empty log message ***
pin
parents:
diff changeset
23 * @param cmd the command to be translated.
6f15a8880ed8 *** empty log message ***
pin
parents:
diff changeset
24 * @return translated command.
6f15a8880ed8 *** empty log message ***
pin
parents:
diff changeset
25 */
6f15a8880ed8 *** empty log message ***
pin
parents:
diff changeset
26 abstract public REPCommand[] transReceiveCmd(REPCommand cmd);
6f15a8880ed8 *** empty log message ***
pin
parents:
diff changeset
27
6f15a8880ed8 *** empty log message ***
pin
parents:
diff changeset
28 /**
6f15a8880ed8 *** empty log message ***
pin
parents:
diff changeset
29 * set the editor's id.
6f15a8880ed8 *** empty log message ***
pin
parents:
diff changeset
30 * @param editor's id.
6f15a8880ed8 *** empty log message ***
pin
parents:
diff changeset
31 */
6f15a8880ed8 *** empty log message ***
pin
parents:
diff changeset
32 abstract public void setEid(int _eid);
6f15a8880ed8 *** empty log message ***
pin
parents:
diff changeset
33 }