org.robokind.impl.motion.openservo
Class OpenServo.Id
java.lang.Object
org.robokind.impl.motion.openservo.OpenServo.Id
- All Implemented Interfaces:
- org.robokind.api.common.utils.LocalIdentifier
- Enclosing class:
- OpenServo
public static final class OpenServo.Id
- extends Object
- implements org.robokind.api.common.utils.LocalIdentifier
Constructor Summary |
OpenServo.Id(int rs485Addr,
int i2cAddr)
Creates a JointId from the given integer id. |
MAX_RS485_ADDR
public static final int MAX_RS485_ADDR
- See Also:
- Constant Field Values
MAX_I2C_ADDR
public static final int MAX_I2C_ADDR
- See Also:
- Constant Field Values
OpenServo.Id
public OpenServo.Id(int rs485Addr,
int i2cAddr)
- Creates a JointId from the given integer id.
- Parameters:
id
- the jointId
getRS485Addr
public int getRS485Addr()
getI2CAddr
public int getI2CAddr()
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
isValidId
public static boolean isValidId(int rs485Addr,
int i2cAddr)
- Returns true is the id would make a valid Id.
- Parameters:
id
- value to check
- Returns:
- true is the id would make a valid Id.
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2011-2013. All Rights Reserved.