001package jmri.jmrix.dcc4pc.configurexml;
002
003import jmri.configurexml.JmriConfigureXmlException;
004import org.jdom2.Element;
005
006/**
007 * Provides load and store functionality for configuring Dcc4PcSensorManagers.
008 * <p>
009 * Uses the store method from the abstract base class, but provides a load
010 * method here.
011 *
012 * @author Kevin Dickerson Copyright: (c) 2012
013 * @author Bob Jacobsen Copyright: Copyright (c) 2002, 2008
014 */
015public class Dcc4PcSensorManagerXml extends jmri.managers.configurexml.AbstractSensorManagerConfigXML {
016
017    public Dcc4PcSensorManagerXml() {
018        super();
019    }
020
021    @Override
022    public void setStoreElementClass(Element sensors) {
023        sensors.setAttribute("class", "jmri.jmrix.dcc4pc.configurexml.Dcc4PcSensorManagerXml");
024    }
025
026    @Override
027    public boolean load(Element shared, Element perNode) throws JmriConfigureXmlException {
028        // create the master object
029        //Dcc4PcSensorManager.instance();
030        // load individual sensors
031        return loadSensors(shared);
032    }
033
034//    private final static Logger log = LoggerFactory.getLogger(Dcc4PcSensorManagerXml.class);
035}