org.robokind.api.motion
Class Robot.JointId

java.lang.Object
  extended by org.robokind.api.motion.Robot.JointId
All Implemented Interfaces:
org.robokind.api.common.utils.GlobalIdentifier
Enclosing interface:
Robot<J extends Joint>

public static class Robot.JointId
extends Object
implements org.robokind.api.common.utils.GlobalIdentifier

JointId is an immutable globally unique identifier for a Joint belonging to a Robot. The JointId is a combination of a Robot.Id and Joint.Id.


Constructor Summary
Robot.JointId(Robot.Id robotId, Joint.Id jointId)
          Creates a new Robot.JointId with the given Robot.Id and Joint.Id.
 
Method Summary
 boolean equals(Object obj)
           
 Joint.Id getJointId()
          Returns the value of the Id.
 Robot.Id getRobotId()
          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

Robot.JointId

public Robot.JointId(Robot.Id robotId,
                     Joint.Id jointId)
Creates a new Robot.JointId with the given Robot.Id and Joint.Id.

Parameters:
robotId - Id of the Robot with the Joint
jointId - Local Id of the Joint
Method Detail

getJointId

public final Joint.Id getJointId()
Returns the value of the Id.

Returns:
the value of the Id

getRobotId

public final Robot.Id getRobotId()
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.