comparison rep/translater/Translater.java @ 315:20fb70068089

*** empty log message ***
author kono
date Mon, 06 Oct 2008 18:58:49 +0900
parents 0585fd2410b8
children 77f443f6dc9f
comparison
equal deleted inserted replaced
314:edb373aa421e 315:20fb70068089
1 package rep.translater; 1 package rep.translater;
2 2
3 import java.util.ArrayList; 3 import rep.Editor;
4
5 import rep.REPCommand; 4 import rep.REPCommand;
6 5
7 public interface Translater { 6 public interface Translater {
8 7
9 /** 8 /**
16 /** 15 /**
17 * Inform translater about that the editor receive own command which it sent. 16 * Inform translater about that the editor receive own command which it sent.
18 * but in this case, you can use also transReceiveCmd() 17 * but in this case, you can use also transReceiveCmd()
19 * @param command which the editor sent. 18 * @param command which the editor sent.
20 */ 19 */
21 abstract public ArrayList<REPCommand> catchOwnCommand(); 20 abstract public boolean catchOwnCommand(Editor editor);
22 21
23 /** 22 /**
24 * Translate Command cmd that was received from SeMa. 23 * Translate Command cmd that was received from SeMa.
25 * @param cmd the command to be translated. 24 * @param cmd the command to be translated.
26 * @return translated command. 25 * @return translated command.
27 */ 26 */
28 abstract public REPCommand[] transReceiveCmd(REPCommand cmd); 27 abstract public void transReceiveCmd(Editor nextEditor,REPCommand cmd);
29 28
30 /** 29 /**
31 * set the editor's id. 30 * set the editor's id.
32 * @param editor's id. 31 * @param editor's id.
33 */ 32 */