Package jmri.managers
Class DefaultCabSignalManager
- java.lang.Object
-
- jmri.managers.AbstractCabSignalManager
-
- jmri.managers.DefaultCabSignalManager
-
- All Implemented Interfaces:
CabSignalManager
,Disposable
public class DefaultCabSignalManager extends AbstractCabSignalManager
Default implementation of theCabSignalManager
interface.
This file is part of JMRI.JMRI is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.
JMRI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
-
Field Summary
-
Fields inherited from class jmri.managers.AbstractCabSignalManager
listListeners, signalList
-
-
Constructor Summary
Constructors Constructor Description DefaultCabSignalManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CabSignal
createCabSignal(LocoAddress address)
Create a new cab signal with the given address.-
Methods inherited from class jmri.managers.AbstractCabSignalManager
addCabSignalListListener, delCabSignal, dispose, getCabSignal, getCabSignalArray, getCabSignalList, notifyCabSignalListChanged, removeCabSignalListListener
-
-
-
-
Constructor Detail
-
DefaultCabSignalManager
public DefaultCabSignalManager()
-
-
Method Detail
-
createCabSignal
protected CabSignal createCabSignal(LocoAddress address)
Create a new cab signal with the given address.- Specified by:
createCabSignal
in classAbstractCabSignalManager
- Parameters:
address
- the address the cab signal is for- Returns:
- a new cab signal
-
-