001package jmri.jmrix.powerline.cm11; 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.cm11.SpecificLightManager(getTrafficController())); 029 InstanceManager.setLightManager(getLightManager()); 030 setSensorManager(new jmri.jmrix.powerline.cm11.SpecificSensorManager(getTrafficController())); 031 InstanceManager.setSensorManager(getSensorManager()); 032 setTurnoutManager(new jmri.jmrix.powerline.SerialTurnoutManager(getTrafficController())); 033 InstanceManager.setTurnoutManager(getTurnoutManager()); 034 register(); 035 } 036 037 @Override 038 public void dispose() { 039 InstanceManager.deregister(this, SpecificSystemConnectionMemo.class); 040 super.dispose(); 041 } 042 043} 044 045