Package jmri.jmrix.openlcb
Class OlcbConfigurationManager
- java.lang.Object
-
- jmri.jmrix.can.ConfigurationManager
-
- jmri.jmrix.openlcb.OlcbConfigurationManager
-
public class OlcbConfigurationManager extends ConfigurationManager
Does configuration for OpenLCB communications implementations.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
OlcbConfigurationManager.PipRequestHandler
(package private) class
OlcbConfigurationManager.SimpleNodeIdentInfoHandler
(package private) class
OlcbConfigurationManager.StartUpHandler
State machine to handle startup-
Nested classes/interfaces inherited from class jmri.jmrix.can.ConfigurationManager
ConfigurationManager.ProgModeSwitch, ConfigurationManager.SubProtocol
-
-
Field Summary
-
Fields inherited from class jmri.jmrix.can.ConfigurationManager
adapterMemo, MERGCBUS, OPENLCB, RAWCAN, SPROGCBUS, TEST
-
-
Constructor Summary
Constructors Constructor Description OlcbConfigurationManager(CanSystemConnectionMemo memo)
-
Method Summary
-
Methods inherited from class jmri.jmrix.can.ConfigurationManager
getSystemOptions, setMERG, setOpenLCB, setSPROG
-
-
-
-
Field Detail
-
OPT_PROTOCOL_IDENT
public static final java.lang.String OPT_PROTOCOL_IDENT
- See Also:
- Constant Field Values
-
OPT_IDENT_NODEID
public static final java.lang.String OPT_IDENT_NODEID
- See Also:
- Constant Field Values
-
OPT_IDENT_USERNAME
public static final java.lang.String OPT_IDENT_USERNAME
- See Also:
- Constant Field Values
-
OPT_IDENT_DESCRIPTION
public static final java.lang.String OPT_IDENT_DESCRIPTION
- See Also:
- Constant Field Values
-
OPT_PROTOCOL_FASTCLOCK
public static final java.lang.String OPT_PROTOCOL_FASTCLOCK
- See Also:
- Constant Field Values
-
OPT_FASTCLOCK_ENABLE
public static final java.lang.String OPT_FASTCLOCK_ENABLE
- See Also:
- Constant Field Values
-
OPT_FASTCLOCK_ENABLE_OFF
public static final java.lang.String OPT_FASTCLOCK_ENABLE_OFF
- See Also:
- Constant Field Values
-
OPT_FASTCLOCK_ENABLE_GENERATOR
public static final java.lang.String OPT_FASTCLOCK_ENABLE_GENERATOR
- See Also:
- Constant Field Values
-
OPT_FASTCLOCK_ENABLE_CONSUMER
public static final java.lang.String OPT_FASTCLOCK_ENABLE_CONSUMER
- See Also:
- Constant Field Values
-
OPT_FASTCLOCK_ID
public static final java.lang.String OPT_FASTCLOCK_ID
- See Also:
- Constant Field Values
-
OPT_FASTCLOCK_ID_DEFAULT
public static final java.lang.String OPT_FASTCLOCK_ID_DEFAULT
- See Also:
- Constant Field Values
-
OPT_FASTCLOCK_ID_DEFAULT_RT
public static final java.lang.String OPT_FASTCLOCK_ID_DEFAULT_RT
- See Also:
- Constant Field Values
-
OPT_FASTCLOCK_ID_ALT_1
public static final java.lang.String OPT_FASTCLOCK_ID_ALT_1
- See Also:
- Constant Field Values
-
OPT_FASTCLOCK_ID_ALT_2
public static final java.lang.String OPT_FASTCLOCK_ID_ALT_2
- See Also:
- Constant Field Values
-
OPT_FASTCLOCK_ID_CUSTOM
public static final java.lang.String OPT_FASTCLOCK_ID_CUSTOM
- See Also:
- Constant Field Values
-
OPT_FASTCLOCK_CUSTOM_ID
public static final java.lang.String OPT_FASTCLOCK_CUSTOM_ID
- See Also:
- Constant Field Values
-
cf
final ComponentFactory cf
-
olcbCanInterface
CanInterface olcbCanInterface
-
loaderClient
LoaderClient loaderClient
-
clockControl
OlcbClockControl clockControl
-
olcbEventNameStore
OlcbEventNameStore olcbEventNameStore
-
messageBuilder
MessageBuilder messageBuilder
-
programmerManager
protected OlcbProgrammerManager programmerManager
-
throttleManager
protected OlcbThrottleManager throttleManager
-
turnoutManager
protected OlcbTurnoutManager turnoutManager
-
sensorManager
protected OlcbSensorManager sensorManager
-
stringIOManager
protected OlcbStringIOManager stringIOManager
-
reporterManager
protected OlcbReporterManager reporterManager
-
commandStation
protected OlcbCommandStation commandStation
-
lightManager
protected OlcbLightManager lightManager
-
-
Constructor Detail
-
OlcbConfigurationManager
public OlcbConfigurationManager(CanSystemConnectionMemo memo)
-
-
Method Detail
-
configureManagers
public void configureManagers()
- Specified by:
configureManagers
in classConfigurationManager
-
getInterface
OlcbInterface getInterface()
-
provides
public boolean provides(java.lang.Class<?> type)
Check if a type of manager is provided by this manager.- Specified by:
provides
in classConfigurationManager
- Parameters:
type
- the class of manager to check- Returns:
- true if the type of manager is provided; false otherwise
-
get
public <T> T get(java.lang.Class<?> T)
- Specified by:
get
in classConfigurationManager
-
getProgrammerManager
public OlcbProgrammerManager getProgrammerManager()
-
getThrottleManager
public OlcbThrottleManager getThrottleManager()
-
getTurnoutManager
public OlcbTurnoutManager getTurnoutManager()
-
getSensorManager
public OlcbSensorManager getSensorManager()
-
getStringIOManager
public OlcbStringIOManager getStringIOManager()
-
getReporterManager
public OlcbReporterManager getReporterManager()
-
getCommandStation
public OlcbCommandStation getCommandStation()
-
dispose
public void dispose()
Description copied from class:ConfigurationManager
Dispose of the ConfigurationManager- Specified by:
dispose
in classConfigurationManager
-
getLightManager
public OlcbLightManager getLightManager()
-
getActionModelResourceBundle
protected java.util.ResourceBundle getActionModelResourceBundle()
- Specified by:
getActionModelResourceBundle
in classConfigurationManager
-
getOurNodeID
protected void getOurNodeID()
Create a node ID in the JMRI range from one byte of IP address, and 2 bytes of PID. That changes each time, which isn't perhaps what's wanted.
-
getProcessId
protected long getProcessId(long fallback)
-
createOlcbCanInterface
public static CanInterface createOlcbCanInterface(NodeID nodeID, TrafficController tc)
-
convertToCan
static CanMessage convertToCan(CanFrame f)
-
convertFromCan
static OpenLcbCanFrame convertFromCan(CanFrame message)
-
-