org.robokind.impl.motion.openservo.utils
Class OpenServoControllerConfig.Reader

java.lang.Object
  extended by org.robokind.impl.motion.config.ServoControllerConfigXMLReader<SerialConf>
      extended by org.robokind.impl.motion.serial.SerialConfigXMLReader<OpenServo.Id,org.robokind.api.motion.servos.config.ServoConfig<OpenServo.Id>,OpenServoControllerConfig>
          extended by org.robokind.impl.motion.openservo.utils.OpenServoControllerConfig.Reader
All Implemented Interfaces:
org.robokind.api.common.services.ConfigurationLoader<OpenServoControllerConfig,org.apache.commons.configuration.HierarchicalConfiguration>
Enclosing class:
OpenServoControllerConfig

public static class OpenServoControllerConfig.Reader
extends org.robokind.impl.motion.serial.SerialConfigXMLReader<OpenServo.Id,org.robokind.api.motion.servos.config.ServoConfig<OpenServo.Id>,OpenServoControllerConfig>


Field Summary
static String CONFIG_TYPE
          Config format version name.
static String CONFIG_VERSION
          Config format version number.
static org.robokind.api.common.config.VersionProperty VERSION
          Config format VersionProperty.
 
Fields inherited from class org.robokind.impl.motion.serial.SerialConfigXMLReader
XML_BAUD_RATE, XML_CONNECTION_PARAMS, XML_DEFAULT_POSITON, XML_JOINT_NAME, XML_JOINT_PARAMS, XML_MAX_POSITON, XML_MIN_POSITION, XML_PORT_NAME, XML_SERVO, XML_SERVO_CONTROLLER_ID, XML_SERVO_ID
 
Constructor Summary
OpenServoControllerConfig.Reader()
           
 
Method Summary
 Class<OpenServoControllerConfig> getConfigurationClass()
           
 org.robokind.api.common.config.VersionProperty getConfigurationFormat()
           
protected  OpenServoControllerConfig newConfig()
           
protected  org.robokind.api.motion.servos.config.ServoConfig<OpenServo.Id> newServoConfig(OpenServo.Id id, String name, int minPos, int maxPos, int defPos)
           
 
Methods inherited from class org.robokind.impl.motion.serial.SerialConfigXMLReader
loadConfiguration
 
Methods inherited from class org.robokind.impl.motion.config.ServoControllerConfigXMLReader
getParameterClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIG_TYPE

public static final String CONFIG_TYPE
Config format version name.

See Also:
Constant Field Values

CONFIG_VERSION

public static final String CONFIG_VERSION
Config format version number.

See Also:
Constant Field Values

VERSION

public static final org.robokind.api.common.config.VersionProperty VERSION
Config format VersionProperty.

Constructor Detail

OpenServoControllerConfig.Reader

public OpenServoControllerConfig.Reader()
Method Detail

newConfig

protected OpenServoControllerConfig newConfig()
Specified by:
newConfig in class org.robokind.impl.motion.serial.SerialConfigXMLReader<OpenServo.Id,org.robokind.api.motion.servos.config.ServoConfig<OpenServo.Id>,OpenServoControllerConfig>

newServoConfig

protected org.robokind.api.motion.servos.config.ServoConfig<OpenServo.Id> newServoConfig(OpenServo.Id id,
                                                                                         String name,
                                                                                         int minPos,
                                                                                         int maxPos,
                                                                                         int defPos)
Specified by:
newServoConfig in class org.robokind.impl.motion.serial.SerialConfigXMLReader<OpenServo.Id,org.robokind.api.motion.servos.config.ServoConfig<OpenServo.Id>,OpenServoControllerConfig>

getConfigurationFormat

public org.robokind.api.common.config.VersionProperty getConfigurationFormat()
Specified by:
getConfigurationFormat in interface org.robokind.api.common.services.ConfigurationLoader<OpenServoControllerConfig,org.apache.commons.configuration.HierarchicalConfiguration>
Specified by:
getConfigurationFormat in class org.robokind.impl.motion.config.ServoControllerConfigXMLReader<OpenServoControllerConfig>

getConfigurationClass

public Class<OpenServoControllerConfig> getConfigurationClass()
Specified by:
getConfigurationClass in interface org.robokind.api.common.services.ConfigurationLoader<OpenServoControllerConfig,org.apache.commons.configuration.HierarchicalConfiguration>
Specified by:
getConfigurationClass in class org.robokind.impl.motion.config.ServoControllerConfigXMLReader<OpenServoControllerConfig>


Copyright © 2011-2013. All Rights Reserved.