org.robokind.api.motion.servos
Class ServoController.ServoId<ServoIdType>

java.lang.Object
  extended by org.robokind.api.motion.servos.ServoController.ServoId<ServoIdType>
Type Parameters:
ServoIdType - Type of Id used by the Servos
All Implemented Interfaces:
org.robokind.api.common.utils.LocalIdentifier
Enclosing interface:
ServoController<IdType,ServoConf extends ServoConfig<IdType>,ServoType extends Servo<IdType,ServoConf>,ControllerConf extends ServoControllerConfig<IdType,ServoConf>>

public static class ServoController.ServoId<ServoIdType>
extends Object
implements org.robokind.api.common.utils.LocalIdentifier

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


Constructor Summary
ServoController.ServoId(ServoController.Id controllerId, ServoIdType servoId)
          Creates a ServoController.ServoId from the given ServoController.Id and Servo Id.
 
Method Summary
 boolean equals(Object obj)
           
 ServoController.Id getControllerId()
          Returns the value of the Id.
 ServoIdType getServoId()
          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

ServoController.ServoId

public ServoController.ServoId(ServoController.Id controllerId,
                               ServoIdType servoId)
Creates a ServoController.ServoId from the given ServoController.Id and Servo Id.

Parameters:
controllerId - ServoController.Id to use
servoId - Servo Id to use
Method Detail

getServoId

public final ServoIdType getServoId()
Returns the value of the Id.

Returns:
the value of the Id

getControllerId

public final ServoController.Id getControllerId()
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.