|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.robokind.impl.motion.config.RobotConfigXMLReader
public class RobotConfigXMLReader
Utility methods for reading an XML RobotConfig.
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. |
static String |
XML_CONFIG_VERSION_TYPE
Config format VersionProperty type attribute. |
static String |
XML_CONTROLLER
ServoController XML Element. |
static String |
XML_CONTROLLER_TYPE_VERSION
Controller Type VersionProperty type attribute. |
static String |
XML_CONTROLLERS
JointControllers XML Element. |
static String |
XML_JOINT
Joint config XML Element. |
static String |
XML_JOINT_CONFIG
Joint configs XML Element. |
static String |
XML_JOINT_JOINT_ID
Joint id XML attribute. |
static String |
XML_JOINT_NAME
Joint name XML attribute. |
static String |
XML_JOINT_SERVO_CONTROLLER_ID
Joint id XML attribute. |
static String |
XML_JOINT_SERVO_ID
Joint id XML attribute. |
static String |
XML_ROBOT_CONFIG
Robot XML Element. |
static String |
XML_ROBOT_ID
Robot XML Id. |
static String |
XML_SERVO_CONTROLLER_CONFIG
Controller parameters XML element name. |
static String |
XML_VERSION_PROPERTIES
Version properties XML element name. |
Fields inherited from interface org.robokind.api.common.services.ServiceConfigurationLoader |
---|
PROP_CONFIG_FORMAT_VERSION, PROP_PARAMETER_CLASS, PROP_SERVICE_CONFIG_CLASS |
Constructor Summary | |
---|---|
RobotConfigXMLReader()
|
Method Summary | |
---|---|
Class<org.robokind.api.motion.servos.config.ServoRobotConfig> |
getConfigurationClass()
|
org.robokind.api.common.config.VersionProperty |
getConfigurationFormat()
|
Class<org.apache.commons.configuration.HierarchicalConfiguration> |
getParameterClass()
|
org.robokind.api.motion.servos.config.ServoRobotConfig |
loadConfiguration(org.apache.commons.configuration.HierarchicalConfiguration param)
|
static org.robokind.api.motion.servos.config.ServoRobotConfig |
readConfig(org.osgi.framework.BundleContext context,
org.apache.commons.configuration.HierarchicalConfiguration xml)
Reads a RobotConfig from the XML node. |
static org.robokind.api.motion.servos.config.ServoRobotConfig |
readConfig(org.osgi.framework.BundleContext context,
String path)
Reads a RobotConfig from the file path. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CONFIG_TYPE
public static final String CONFIG_VERSION
public static final org.robokind.api.common.config.VersionProperty VERSION
public static final String XML_ROBOT_CONFIG
public static final String XML_ROBOT_ID
public static final String XML_JOINT_CONFIG
public static final String XML_JOINT
public static final String XML_JOINT_JOINT_ID
public static final String XML_JOINT_SERVO_CONTROLLER_ID
public static final String XML_JOINT_SERVO_ID
public static final String XML_JOINT_NAME
public static final String XML_CONTROLLERS
public static final String XML_CONTROLLER
public static final String XML_VERSION_PROPERTIES
public static final String XML_CONTROLLER_TYPE_VERSION
public static final String XML_CONFIG_VERSION_TYPE
public static final String XML_SERVO_CONTROLLER_CONFIG
Constructor Detail |
---|
public RobotConfigXMLReader()
Method Detail |
---|
public static org.robokind.api.motion.servos.config.ServoRobotConfig readConfig(org.osgi.framework.BundleContext context, String path)
context
- BundleContext to use for loading a config readerpath
- path to the XML file
public static org.robokind.api.motion.servos.config.ServoRobotConfig readConfig(org.osgi.framework.BundleContext context, org.apache.commons.configuration.HierarchicalConfiguration xml)
context
- BundleContext to use for loading a config readerxml
- XML node
public org.robokind.api.common.config.VersionProperty getConfigurationFormat()
getConfigurationFormat
in interface org.robokind.api.common.services.ServiceConfigurationLoader<org.robokind.api.motion.servos.config.ServoRobotConfig,org.apache.commons.configuration.HierarchicalConfiguration>
public org.robokind.api.motion.servos.config.ServoRobotConfig loadConfiguration(org.apache.commons.configuration.HierarchicalConfiguration param)
loadConfiguration
in interface org.robokind.api.common.services.ServiceConfigurationLoader<org.robokind.api.motion.servos.config.ServoRobotConfig,org.apache.commons.configuration.HierarchicalConfiguration>
public Class<org.robokind.api.motion.servos.config.ServoRobotConfig> getConfigurationClass()
getConfigurationClass
in interface org.robokind.api.common.services.ServiceConfigurationLoader<org.robokind.api.motion.servos.config.ServoRobotConfig,org.apache.commons.configuration.HierarchicalConfiguration>
public Class<org.apache.commons.configuration.HierarchicalConfiguration> getParameterClass()
getParameterClass
in interface org.robokind.api.common.services.ServiceConfigurationLoader<org.robokind.api.motion.servos.config.ServoRobotConfig,org.apache.commons.configuration.HierarchicalConfiguration>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |