public enum CommandCode extends Enum<CommandCode>
RemotelyControllable
interface
methods from a Robot
instance to a Robot
instance.Enum Constant and Description |
---|
END
Constant that maps
Robot.end() to
Robot.end() . |
ROTATE
Constant that maps
Robot.rotate(double) to
Robot.rotate(double) . |
ROTATE_LEFT
Constant that maps
Robot.rotateLeft() to
Robot.rotateLeft() . |
ROTATE_RIGHT
Constant that maps
Robot.rotateRight() to
Robot.rotateRight() . |
SCAN
Constant that maps
Robot.scan() to
Robot.scan() . |
TRANSLATE
Constant that maps
Robot.translate(double) to
Robot.translate(double) . |
TRANSLATE_BACKWARD
Constant that maps
Robot.translateBackward() to
Robot.translateBackward() . |
TRANSLATE_FORWARD
Constant that maps
Robot.translateForward() to
Robot.translateForward() . |
Modifier and Type | Method and Description |
---|---|
static CommandCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CommandCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommandCode TRANSLATE
Robot.translate(double)
to
Robot.translate(double)
.public static final CommandCode TRANSLATE_FORWARD
Robot.translateForward()
to
Robot.translateForward()
.public static final CommandCode TRANSLATE_BACKWARD
Robot.translateBackward()
to
Robot.translateBackward()
.public static final CommandCode ROTATE
Robot.rotate(double)
to
Robot.rotate(double)
.public static final CommandCode ROTATE_RIGHT
Robot.rotateRight()
to
Robot.rotateRight()
.public static final CommandCode ROTATE_LEFT
Robot.rotateLeft()
to
Robot.rotateLeft()
.public static final CommandCode SCAN
Robot.scan()
to
Robot.scan()
.public static final CommandCode END
Robot.end()
to
Robot.end()
.public static CommandCode[] values()
for (CommandCode c : CommandCode.values()) System.out.println(c);
public static CommandCode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullLicensed under the New BSD License
Thu Nov 15 18:47:59 CST 2012