Enum Constant and Description |
---|
ROBOT_1
The id of the first robot (white)
|
ROBOT_2
The id of the second robot (pink)
|
ROBOT_3
The id of the third robot (light green)
|
ROBOT_4
The id of the fourth robot (blue)
|
ROBOT_5
The id of the fifth robot (yellow)
|
ROBOT_6
The id of the sixth robot (dark green)
|
ROBOT_7
The id of the seventh robot (orange)
|
ROBOT_8
The id of the eight robot (red)
|
Modifier and Type | Method and Description |
---|---|
static RobotID |
getRobotIDFromID(int robotID)
Gets a robot ID value from its numerical representation
|
int |
getRobotIDID()
Gets the numerical id used for identification of a robot id
|
static RobotID |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RobotID[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RobotID ROBOT_1
public static final RobotID ROBOT_2
public static final RobotID ROBOT_3
public static final RobotID ROBOT_4
public static final RobotID ROBOT_5
public static final RobotID ROBOT_6
public static final RobotID ROBOT_7
public static final RobotID ROBOT_8
public static RobotID[] values()
for (RobotID c : RobotID.values()) System.out.println(c);
public static RobotID valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static RobotID getRobotIDFromID(int robotID)
robotID
- The numerical representation of a robot idpublic int getRobotIDID()