Class CbusConfigurationManager
- java.lang.Object
-
- jmri.jmrix.can.ConfigurationManager
-
- jmri.jmrix.can.cbus.CbusConfigurationManager
-
- All Implemented Interfaces:
Disposable
public class CbusConfigurationManager extends ConfigurationManager implements Disposable
Does configuration for MERG CBUS CAN-based communications implementations.
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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jmri.jmrix.can.ConfigurationManager
ConfigurationManager.ProgModeSwitch, ConfigurationManager.SubProtocol
-
-
Field Summary
Fields Modifier and Type Field Description protected CbusConsistManager
consistManager
-
Fields inherited from class jmri.jmrix.can.ConfigurationManager
adapterMemo, MERGCBUS, OPENLCB, RAWCAN, SPROGCBUS, TEST
-
-
Constructor Summary
Constructors Constructor Description CbusConfigurationManager(CanSystemConnectionMemo memo)
Create a new CbusConfigurationManager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configureManagers()
void
dispose()
Dispose of the ConfigurationManager<T> void
disposeOf(T item, java.lang.Class<T> type)
<T> T
get(java.lang.Class<?> T)
protected java.util.ResourceBundle
getActionModelResourceBundle()
<T> T
provide(java.lang.Class<?> T)
Provide a new Class instance.boolean
provides(java.lang.Class<?> type)
Tells which managers this class provides.-
Methods inherited from class jmri.jmrix.can.ConfigurationManager
getSystemOptions, setMERG, setOpenLCB, setSPROG
-
-
-
-
Field Detail
-
consistManager
protected CbusConsistManager consistManager
-
-
Constructor Detail
-
CbusConfigurationManager
public CbusConfigurationManager(@Nonnull CanSystemConnectionMemo memo)
Create a new CbusConfigurationManager. A Supporting class to configure theCanSystemConnectionMemo
for thejmri.jmrix.can.cbus
classes.- Parameters:
memo
- Connection to configure.
-
-
Method Detail
-
configureManagers
public void configureManagers()
- Specified by:
configureManagers
in classConfigurationManager
-
provides
public boolean provides(java.lang.Class<?> type)
Tells which managers this class provides. Get which managers this class provides.- Specified by:
provides
in classConfigurationManager
- Parameters:
type
- Class type to check- Returns:
- true if supported; false if not
-
get
public <T> T get(java.lang.Class<?> T)
- Specified by:
get
in classConfigurationManager
-
provide
public <T> T provide(@Nonnull java.lang.Class<?> T)
Provide a new Class instance.NOT for general use outside of this class, although public so that classes like CbusEventTablePane can get a CbusEventTableDataModel when started.
If a class is NOT auto-created by the normal get, it can be provided with this method. Adds provided class to memo class object map, AND InstanceManager.
- Type Parameters:
T
- class type.- Parameters:
T
- class type.- Returns:
- class object, or null if unavailable.
-
dispose
public void dispose()
Dispose of the ConfigurationManager- Specified by:
dispose
in interfaceDisposable
- Specified by:
dispose
in classConfigurationManager
-
getActionModelResourceBundle
protected java.util.ResourceBundle getActionModelResourceBundle()
- Specified by:
getActionModelResourceBundle
in classConfigurationManager
-
-