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