org.robokind.api.motion.servos.utils
Interface ServoIdReader<Id>

Type Parameters:
Id - Id Type to read

public interface ServoIdReader<Id>

A ServoIdReader is used to parse a String into a specific Id Type.

Author:
Matthew Stevenson

Method Summary
 Class<Id> getServoIdClass()
          Returns the Class of the Id Type read by this ServoIdReader.
 ServoController.ServoId<Id> read(ServoController.Id controllerId, String servoIdStr)
          Reads and parses a String into the Id Type, and returns a ServoController.ServoId.
 Id read(String servoIdStr)
          Reads and parses a String into the Id Type
 

Method Detail

read

ServoController.ServoId<Id> read(ServoController.Id controllerId,
                                 String servoIdStr)
Reads and parses a String into the Id Type, and returns a ServoController.ServoId.

Parameters:
controllerId - ServoController.Id to use
servoIdStr - Id String to parse
Returns:
ServoController.ServoId with the given ServoController.Id and the parsed Servo Id

read

Id read(String servoIdStr)
Reads and parses a String into the Id Type

Parameters:
servoIdStr - Id String to parse
Returns:
parsed Servo Id

getServoIdClass

Class<Id> getServoIdClass()
Returns the Class of the Id Type read by this ServoIdReader.

Returns:
Class of the Id Type read by this ServoIdReader


Copyright © 2011. All Rights Reserved.