Mercurial > hg > RemoteEditor > REPSessionManager
view rep/translater/Translater.java @ 281:c3969dd625b2
GUIless test routine.
author | kono |
---|---|
date | Sat, 27 Sep 2008 22:55:13 +0900 |
parents | 4d9b32666ed2 |
children | 0585fd2410b8 |
line wrap: on
line source
package rep.translater; import java.util.ArrayList; import rep.REPCommand; public interface Translater { /** * Translate command When the editor send REPCommand to remote editor. * @param command which the editor want to send. * @return translated command which should be sent by the editor. */ abstract public REPCommand transSendCmd(REPCommand cmd); /** * Inform translater about that the editor receive own command which it sent. * but in this case, you can use also transReceiveCmd() * @param command which the editor sent. */ abstract public ArrayList<REPCommand> catchOwnCommand(REPCommand cmd); /** * Translate Command cmd that was received from SeMa. * @param cmd the command to be translated. * @return translated command. */ abstract public REPCommand[] transReceiveCmd(REPCommand cmd); /** * set the editor's id. * @param editor's id. */ abstract public void setEid(int _eid); }