org.robokind.impl.motion.pololu
Class MaestroServo.Id

java.lang.Object
  extended by org.robokind.impl.motion.pololu.MaestroServo.Id
All Implemented Interfaces:
Comparable, org.robokind.api.common.utils.LocalIdentifier
Enclosing class:
MaestroServo

public static final class MaestroServo.Id
extends Object
implements org.robokind.api.common.utils.LocalIdentifier, Comparable


Constructor Summary
MaestroServo.Id(byte num)
          Creates a MaestroServo.Id from the given servo number.
 
Method Summary
 int compareTo(Object o)
           
 boolean equals(Object obj)
           
 int hashCode()
           
static boolean isValidId(int id)
          Returns true if the given id is valid for a PhysicalId.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MaestroServo.Id

public MaestroServo.Id(byte num)
Creates a MaestroServo.Id from the given servo number.

Parameters:
num - the servo number
Method Detail

equals

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

isValidId

public static boolean isValidId(int id)
Returns true if the given id is valid for a PhysicalId.

Parameters:
id - value to check
Returns:
true if the given id is valid for a PhysicalId.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable


Copyright © 2011-2013. All Rights Reserved.