Mercurial > hg > RemoteEditor > REPSessionManager
view rep/translator/Translator.java @ 324:e235998427a6 before-merge-fix
try to fix merger
author | kono |
---|---|
date | Sat, 11 Oct 2008 16:31:03 +0900 |
parents | |
children | be0831086e63 |
line wrap: on
line source
package rep.translator; import rep.Editor; import rep.Forwarder; import rep.REPCommand; public interface Translator { /** * 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 boolean catchOwnCommand(Editor editor); /** * Translate Command cmd that was received from SeMa. * @param cmd the command to be translated. * @return translated command. */ abstract public void transReceiveCmd(Forwarder nextEditor,REPCommand cmd); /** * set the editor's id. * @param editor's id. */ abstract public void setEid(int _eid); }