Package jmri.jmrix.can
Class ConfigurationManager
- java.lang.Object
-
- jmri.jmrix.can.ConfigurationManager
-
- Direct Known Subclasses:
CanConfigurationManager
,CbusConfigurationManager
,NmraConfigurationManager
,OlcbConfigurationManager
public abstract class ConfigurationManager extends java.lang.Object
Does configuration for various CAN-based communications implementations.TODO It would be good to replace this with properties-based method for redirecting to classes in particular subpackages.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ConfigurationManager.ProgModeSwitch
Enumerate support for switching programming modes in connected hardwarestatic class
ConfigurationManager.SubProtocol
-
Field Summary
Fields Modifier and Type Field Description protected CanSystemConnectionMemo
adapterMemo
static java.lang.String
MERGCBUS
static java.lang.String
OPENLCB
static java.lang.String
RAWCAN
static java.lang.String
SPROGCBUS
static java.lang.String
TEST
-
Constructor Summary
Constructors Constructor Description ConfigurationManager(CanSystemConnectionMemo memo)
Create a new ConfigurationManager
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
configureManagers()
abstract void
dispose()
Dispose of the ConfigurationManagerabstract <T> T
get(java.lang.Class<?> T)
protected abstract java.util.ResourceBundle
getActionModelResourceBundle()
static java.lang.String[]
getSystemOptions()
Provide the current set of "Option1" valuesabstract boolean
provides(java.lang.Class<?> type)
Get which managers this class provides.static void
setMERG()
Set the list of protocols to start with MERG.static void
setOpenLCB()
Set the list of protocols to start with OpenLCB.static void
setSPROG()
Set the list of protocols to start with SPROG.
-
-
-
Field Detail
-
SPROGCBUS
public static final java.lang.String SPROGCBUS
- See Also:
- Constant Field Values
-
MERGCBUS
public static final java.lang.String MERGCBUS
- See Also:
- Constant Field Values
-
OPENLCB
public static final java.lang.String OPENLCB
- See Also:
- Constant Field Values
-
RAWCAN
public static final java.lang.String RAWCAN
- See Also:
- Constant Field Values
-
TEST
public static final java.lang.String TEST
- See Also:
- Constant Field Values
-
adapterMemo
protected CanSystemConnectionMemo adapterMemo
-
-
Constructor Detail
-
ConfigurationManager
public ConfigurationManager(CanSystemConnectionMemo memo)
Create a new ConfigurationManager- Parameters:
memo
- System Connection
-
-
Method Detail
-
getSystemOptions
public static java.lang.String[] getSystemOptions()
Provide the current set of "Option1" values- Returns:
- Copy of System Options Array
-
setOpenLCB
public static void setOpenLCB()
Set the list of protocols to start with OpenLCB.
-
setMERG
public static void setMERG()
Set the list of protocols to start with MERG.
-
setSPROG
public static void setSPROG()
Set the list of protocols to start with SPROG.
-
configureManagers
public abstract void configureManagers()
-
provides
public abstract boolean provides(java.lang.Class<?> type)
Get which managers this class provides.- Parameters:
type
- class to query.- Returns:
- true if provided, else false.
-
get
public abstract <T> T get(java.lang.Class<?> T)
-
dispose
public abstract void dispose()
Dispose of the ConfigurationManager
-
getActionModelResourceBundle
protected abstract java.util.ResourceBundle getActionModelResourceBundle()
-
-