us.ihmc.robotSide
Enum RobotSide
java.lang.Object
java.lang.Enum<RobotSide>
us.ihmc.robotSide.RobotSide
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<RobotSide>
public enum RobotSide
- extends java.lang.Enum<RobotSide>
Title:
Description:
Copyright: Copyright (c) 2007
Company:
- Version:
- 1.0
- Author:
- not attributable
Methods inherited from class java.lang.Enum |
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
LEFT
public static final RobotSide LEFT
RIGHT
public static final RobotSide RIGHT
values
public static RobotSide[] values
values
public static RobotSide[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (RobotSide c : RobotSide.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static RobotSide valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
getOppositeSide
public RobotSide getOppositeSide()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Enum<RobotSide>
getShortLowerCaseName
public java.lang.String getShortLowerCaseName()
getCamelCaseNameForStartOfExpression
public java.lang.String getCamelCaseNameForStartOfExpression()
getCamelCaseNameForMiddleOfExpression
public java.lang.String getCamelCaseNameForMiddleOfExpression()
getLowerCaseName
public java.lang.String getLowerCaseName()
getSideNameInAllCaps
public java.lang.String getSideNameInAllCaps()
getSideNameFirstLetter
public java.lang.String getSideNameFirstLetter()
getSideStringInRobonetFormat
public java.lang.String getSideStringInRobonetFormat()
getSideStringInRobonetFormatWithoutSlash
public java.lang.String getSideStringInRobonetFormatWithoutSlash()
negateIfLeftSide
public double negateIfLeftSide(double value)
negateIfRightSide
public double negateIfRightSide(double value)
checkRobotSideMatch
public void checkRobotSideMatch(RobotSide other)
getSideFromString
public static RobotSide getSideFromString(java.lang.String robotSideName)
main
public static void main(java.lang.String[] args)