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