org.robokind.api.motion
Class Joint.Id

java.lang.Object
  extended by org.robokind.api.motion.Joint.Id
All Implemented Interfaces:
org.robokind.api.common.utils.LocalIdentifier
Enclosing interface:
Joint

public static final class Joint.Id
extends Object
implements org.robokind.api.common.utils.LocalIdentifier

Joint.Id is an immutable identifier for a Joint within a Robot or ServoController. This is not globally unique. Use a Robot.JointId if global uniqueness is needed.


Constructor Summary
Joint.Id(int id)
          Creates a Id from the given integer id.
 
Method Summary
 boolean equals(Object obj)
           
 int getLogicalJointNumber()
          Returns the value of the Id.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Joint.Id

public Joint.Id(int id)
Creates a Id from the given integer id.

Parameters:
id - the jointId
Method Detail

getLogicalJointNumber

public int getLogicalJointNumber()
Returns the value of the Id.

Returns:
the value of the Id

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.