001/* This source code is released under the new BSD license, a copy of the 002 * license is in the distribution directory. */ 003 004package mazerob.conn; 005 006/** Constants that map the {@link mazerob.conn.RemotelyControllable} interface 007 * methods from a {@link mazerob.pc.Robot} instance to a {@link 008 * mazerob.nxt.Robot} instance. 009 * 010 * @author Pedro I. López 011 * 012 */ 013public enum CommandCode { 014 015 /** Constant that maps {@link mazerob.pc.Robot#translate} to 016 * {@link mazerob.nxt.Robot#translate}. */ 017 TRANSLATE, 018 019 /** Constant that maps {@link mazerob.pc.Robot#translateForward} to 020 * {@link mazerob.nxt.Robot#translateForward}. */ 021 TRANSLATE_FORWARD, 022 023 /** Constant that maps {@link mazerob.pc.Robot#translateBackward} to 024 * {@link mazerob.nxt.Robot#translateBackward}. */ 025 TRANSLATE_BACKWARD, 026 027 /** Constant that maps {@link mazerob.pc.Robot#rotate} to 028 * {@link mazerob.nxt.Robot#rotate}. */ 029 ROTATE, 030 031 /** Constant that maps {@link mazerob.pc.Robot#rotateRight} to 032 * {@link mazerob.nxt.Robot#rotateRight}. */ 033 ROTATE_RIGHT, 034 035 /** Constant that maps {@link mazerob.pc.Robot#rotateLeft} to 036 * {@link mazerob.nxt.Robot#rotateLeft}. */ 037 ROTATE_LEFT, 038 039 /** Constant that maps {@link mazerob.pc.Robot#scan} to 040 * {@link mazerob.nxt.Robot#scan}. */ 041 SCAN, 042 043 /** Constant that maps {@link mazerob.pc.Robot#end} to 044 * {@link mazerob.nxt.Robot#end}. */ 045 END 046}