Package jmri
Interface CabSignalManager
- All Known Implementing Classes:
AbstractCabSignalManager,CbusCabSignalManager,DefaultCabSignalManager,LnCabSignalManager
public interface CabSignalManager
Interface for CabSignal Manager objects, which provide access to the existing
CabSignals and allows for creation and destruction.
This file is part of JMRI.
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.
-
Method Summary
Modifier and TypeMethodDescriptionvoidRegister a CabSignalListListener object with this CabSignalManagervoiddelCabSignal(LocoAddress address) Remove an old CabSignal.getCabSignal(LocoAddress address) Find a CabSignal with the given address, and return it.Get an array of known cab signals.Get a list of known cab signal addresses.voidNotify the registered CabSignalListListener objects that the CabSignalList has changed.voidRemove a CabSignalListListener object with this CabSignalManager
-
Method Details
-
getCabSignal
Find a CabSignal with the given address, and return it. If the CabSignal doesn't exit, create it.- Parameters:
address- the cab signal for the address- Returns:
- an existing or new cab signal
-
delCabSignal
Remove an old CabSignal.- Parameters:
address- the address associated with the cab signal
-
getCabSignalList
Get a list of known cab signal addresses.- Returns:
- list of cab signal addresses
-
getCabSignalArray
Get an array of known cab signals.- Returns:
- array of cab signals
-
addCabSignalListListener
Register a CabSignalListListener object with this CabSignalManager- Parameters:
listener- a CabSignal List Listener object.
-
removeCabSignalListListener
Remove a CabSignalListListener object with this CabSignalManager- Parameters:
listener- a CabSignal List Listener object.
-
notifyCabSignalListChanged
void notifyCabSignalListChanged()Notify the registered CabSignalListListener objects that the CabSignalList has changed.
-