001package jmri.jmrix.powerline.simulator;
002
003import jmri.InstanceManager;
004
005/**
006 * Lightweight class to denote that a system is active, and provide general
007 * information.
008 * <p>
009 * Objects of specific subtypes are registered in the instance manager to
010 * activate their particular system.
011 *
012 * @author Bob Jacobsen Copyright (C) 2010 copied from powerline class as part
013 * of the multiple connections
014 * @author Ken Cameron Copyright (C) 2011
015 */
016public class SpecificSystemConnectionMemo extends jmri.jmrix.powerline.SerialSystemConnectionMemo {
017
018    public SpecificSystemConnectionMemo() {
019        super();
020    }
021
022    /**
023     * Configure the common managers for Powerline connections. This puts the
024     * common manager config in one place.
025     */
026    @Override
027    public void configureManagers() {
028        setLightManager(new jmri.jmrix.powerline.simulator.SpecificLightManager(getTrafficController()));
029        InstanceManager.setLightManager(getLightManager());
030        setSensorManager(new jmri.jmrix.powerline.simulator.SpecificSensorManager(getTrafficController()));
031        InstanceManager.setSensorManager(getSensorManager());
032        setTurnoutManager(new jmri.jmrix.powerline.SerialTurnoutManager(getTrafficController()));
033        InstanceManager.setTurnoutManager(getTurnoutManager());
034    }
035
036    @Override
037    public void dispose() {
038        InstanceManager.deregister(this, SpecificSystemConnectionMemo.class);
039        super.dispose();
040    }
041
042}
043
044