001package jmri.jmrix.powerline.dmx512; 002 003import java.util.ResourceBundle; 004 005import jmri.InstanceManager; 006 007/** 008 * Lightweight class to denote that a system is active, and provide general 009 * information. 010 * <p> 011 * Objects of specific subtypes are registered in the instance manager to 012 * activate their particular system. 013 * 014 * @author Bob Jacobsen Copyright (C) 2010 copied from powerline class as part 015 * of the multiple connections 016 * @author Ken Cameron Copyright (C) 2023 017 */ 018public class SpecificSystemConnectionMemo extends jmri.jmrix.powerline.SerialSystemConnectionMemo { 019 020 public SpecificSystemConnectionMemo() { 021 super(); 022 } 023 024 /** 025 * Configure the common managers for Powerline connections. This puts the 026 * common manager config in one place. 027 */ 028 @Override 029 public void configureManagers() { 030 setLightManager(new jmri.jmrix.powerline.dmx512.SpecificLightManager(getTrafficController())); 031 InstanceManager.setLightManager(getLightManager()); 032 register(); 033 } 034 035 @Override 036 protected ResourceBundle getActionModelResourceBundle() { 037 return ResourceBundle.getBundle("jmri.jmrix.powerline.dmx512.PowerlineActionListBundle"); 038 } 039 040 // DMX doesn't have any menu items, so empty list 041 @Override 042 public MenuItem[] provideMenuItemList() { 043 return new MenuItem[] {}; 044 } 045 046 @Override 047 public void dispose() { 048 InstanceManager.deregister(this, SpecificSystemConnectionMemo.class); 049 super.dispose(); 050 } 051 052} 053 054