001package jmri.jmrix.powerline.dmx512; 002 003import javax.annotation.Nonnull; 004 005import jmri.Light; 006import jmri.jmrix.powerline.SerialTrafficController; 007 008/** 009 * Implement LightManager for powerline serial systems with DMX512 serial adapters. 010 * <p> 011 * Just provide the specific objects at creation time. 012 * 013 * @author Dave Duchamp Copyright (C) 2004 014 * @author Bob Jacobsen Copyright (C) 2006, 2007, 2008 Converted to multiple 015 * connection 016 * @author Ken Cameron Copyright (C) 2023 017 */ 018public class SpecificLightManager extends jmri.jmrix.powerline.SerialLightManager { 019 020 public SpecificLightManager(SerialTrafficController tc) { 021 super(tc); 022 this.tc = tc; 023 } 024 025 SerialTrafficController tc = null; 026 027 /** 028 * Create light of a specific type for the interface 029 */ 030 @Override 031 protected Light createNewSpecificLight(String systemName, String userName) { 032 return new SpecificLight(systemName, tc, userName); 033 } 034 035 /** 036 * {@inheritDoc} 037 */ 038 @Override 039 public String getEntryToolTip() { 040 return Bundle.getMessage("AddDmxOutputEntryToolTip"); 041 } 042 043 /** 044 * {@inheritDoc} 045 */ 046 @Override 047 public boolean allowMultipleAdditions(@Nonnull String systemName) { 048 return true; 049 } 050} 051