org.robokind.api.motion.servos
Class ServoRobot.ServoControllerContext<T extends Servo<?,?>>

java.lang.Object
  extended by org.robokind.api.motion.servos.ServoRobot.ServoControllerContext<T>
Type Parameters:
T - Type of Servo to use
Enclosing class:
ServoRobot

public static class ServoRobot.ServoControllerContext<T extends Servo<?,?>>
extends Object

Contains the objects used for loading and creating a ServoController.


Constructor Summary
ServoRobot.ServoControllerContext(org.robokind.api.common.services.ServiceContext<ServoController<?,?,T,?>,ServoControllerConfig,?> connContext, ServoJointAdapter<T,?> jointAdapter)
          Creates a new ServoControllerContext.
 
Method Summary
 ServoController getServoController()
          Returns the ServoControllerContext's ServoController
 ServoJointAdapter getServoJointAdapter()
          Returns the associated JointAdapter
 void initialize()
          Initializes the ServoControllerContext, creating the ServoController.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServoRobot.ServoControllerContext

public ServoRobot.ServoControllerContext(org.robokind.api.common.services.ServiceContext<ServoController<?,?,T,?>,ServoControllerConfig,?> connContext,
                                         ServoJointAdapter<T,?> jointAdapter)
Creates a new ServoControllerContext.

Parameters:
connContext - ConnectionContext for the ServoController
jointAdapter - JointAdapter for creating Joints from Servos
Method Detail

initialize

public void initialize()
Initializes the ServoControllerContext, creating the ServoController.


getServoController

public ServoController getServoController()
Returns the ServoControllerContext's ServoController

Returns:
ServoControllerContext's ServoController

getServoJointAdapter

public ServoJointAdapter getServoJointAdapter()
Returns the associated JointAdapter

Returns:
associated JointAdapter


Copyright © 2011-2013. All Rights Reserved.