org.robokind.impl.motion.pololu
Class MaestroControllerConfig.Reader

java.lang.Object
  extended by org.robokind.impl.motion.config.ServoControllerConfigXMLReader<SerialConf>
      extended by org.robokind.impl.motion.serial.SerialConfigXMLReader<MaestroServo.Id,org.robokind.api.motion.servos.config.ServoConfig<MaestroServo.Id>,MaestroControllerConfig>
          extended by org.robokind.impl.motion.pololu.MaestroControllerConfig.Reader
All Implemented Interfaces:
org.robokind.api.common.services.ServiceConfigurationLoader<MaestroControllerConfig,org.apache.commons.configuration.HierarchicalConfiguration>
Enclosing class:
MaestroControllerConfig

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


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
 
Fields inherited from interface org.robokind.api.common.services.ServiceConfigurationLoader
PROP_CONFIG_FORMAT_VERSION, PROP_PARAMETER_CLASS, PROP_SERVICE_CONFIG_CLASS
 
Constructor Summary
MaestroControllerConfig.Reader()
           
 
Method Summary
 Class<MaestroControllerConfig> getConfigurationClass()
           
 org.robokind.api.common.config.VersionProperty getConfigurationFormat()
           
protected  MaestroControllerConfig newConfig()
           
protected  org.robokind.api.motion.servos.config.ServoConfig<MaestroServo.Id> newServoConfig(MaestroServo.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

MaestroControllerConfig.Reader

public MaestroControllerConfig.Reader()
Method Detail

newConfig

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

newServoConfig

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

getConfigurationFormat

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

getConfigurationClass

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


Copyright © 2011. All Rights Reserved.