org.robokind.api.motion
Class Joint.Id
java.lang.Object
org.robokind.api.motion.Joint.Id
- All Implemented Interfaces:
- LocalIdentifier
- Enclosing interface:
- Joint
public static final class Joint.Id
- extends Object
- implements 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. |
Joint.Id
public Joint.Id(int id)
- Creates a Id from the given integer id.
- Parameters:
id - the jointId
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-2013. All Rights Reserved.