001package jmri.jmrix.ieee802154.xbee.configurexml;
002
003import jmri.configurexml.JmriConfigureXmlException;
004import org.jdom2.Element;
005import org.slf4j.Logger;
006import org.slf4j.LoggerFactory;
007
008/**
009 * Provides load and store functionality for configuring XBeeSensorManagers.
010 * <p>
011 * Uses the store method from the abstract base class, but provides a load
012 * method here.
013 *
014 * @author Ken Cameron Copyright: Copyright (c) 2014
015 */
016public class XBeeSensorManagerXml extends jmri.managers.configurexml.AbstractSensorManagerConfigXML {
017
018    public XBeeSensorManagerXml() {
019        super();
020    }
021
022    @Override
023    public void setStoreElementClass(Element sensors) {
024        sensors.setAttribute("class", this.getClass().getName());
025    }
026
027    @Override
028    public boolean load(Element shared, Element perNode) throws JmriConfigureXmlException {
029        // load individual sensors
030        return loadSensors(shared);
031    }
032
033//    private final static Logger log = LoggerFactory.getLogger(XBeeSensorManagerXml.class);
034}