Class SensorConfig

  • Direct Known Subclasses:
    DlmsConfig, LoraWanConfig

    public class SensorConfig
    extends Object
    Base for all sensor configurations This is class should be extended by any sensor config class
    • Constructor Detail

      • SensorConfig

        public SensorConfig()
    • Method Detail

      • createFromXml

        public static SensorConfig createFromXml​(Class<? extends SensorConfig> retClass,
                                                 String xml)
                                          throws Exception
        Create DCI list object from XML document
        Parameters:
        xml - XML document
        Returns:
        deserialized object
        Throws:
        Exception - if the object cannot be fully deserialized
      • createXml

        public String createXml()
                         throws Exception
        Create XML from configuration.
        Returns:
        XML document
        Throws:
        Exception - if the schema for the object is not valid