org.robokind.impl.motion.openservo
Class OpenServo.Id

java.lang.Object
  extended by 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


Field Summary
static int MAX_I2C_ADDR
           
static int MAX_RS485_ADDR
           
 
Constructor Summary
OpenServo.Id(int rs485Addr, int i2cAddr)
          Creates a JointId from the given integer id.
 
Method Summary
 boolean equals(Object obj)
           
 int getI2CAddr()
           
 int getRS485Addr()
           
 int hashCode()
           
static boolean isValidId(int rs485Addr, int i2cAddr)
          Returns true is the id would make a valid Id.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

OpenServo.Id

public OpenServo.Id(int rs485Addr,
                    int i2cAddr)
Creates a JointId from the given integer id.

Parameters:
id - the jointId
Method Detail

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.