001package jmri.jmrix.lenz.hornbyelite;
002
003import jmri.jmrix.lenz.XNetSystemConnectionMemo;
004import jmri.jmrix.lenz.XNetTrafficController;
005
006/**
007 * Lightweight class to denote that a system is active and provide general
008 * information
009 * <p>
010 * Objects of specific subtypes are registered in the instance manager to
011 * activate their particular system.
012 *
013 * @author Paul Bender Copyright (C) 2017
014 */
015public class EliteXNetSystemConnectionMemo extends XNetSystemConnectionMemo {
016
017    public EliteXNetSystemConnectionMemo(XNetTrafficController xt) {
018        super(xt);
019    }
020
021    public EliteXNetSystemConnectionMemo() {
022        super();
023    }
024
025    @Override
026    public boolean provides(Class<?> type) {
027        if (getDisabled()) {
028            return false;
029        } else if (type.equals(jmri.ConsistManager.class)) {
030            return false;
031        } else {
032            return super.provides(type); // defer to the superclass.
033        }
034    }
035
036    // private static final Logger log = LoggerFactory.getLogger(EliteXNetSystemConnectionMemo.class);
037
038}