Package jmri.jmrix.lenz
Class XNetInitializationManager
- java.lang.Object
-
- jmri.jmrix.lenz.XNetInitializationManager
-
public class XNetInitializationManager extends java.lang.Object
This class performs Command Station dependent initialization for XpressNet. It adds the appropriate Managers via the Initialization Manager based on the Command Station Type.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
XNetInitializationManager.XNetInitializer
-
Constructor Summary
Constructors Constructor Description XNetInitializationManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XNetInitializationManager
consistManager(java.lang.Class<? extends XNetConsistManager> consistManagerClass)
Set the Consist Manager Classvoid
init()
XNetInitializationManager
lightManager(java.lang.Class<? extends XNetLightManager> lightManagerClass)
Set the Light Manager ClassXNetInitializationManager
memo(XNetSystemConnectionMemo systemMemo)
Set the memo to initializeXNetInitializationManager
noCommandStation()
XNetInitializationManager
powerManager(java.lang.Class<? extends XNetPowerManager> powerManagerClass)
Set the power Manager classXNetInitializationManager
programmer(java.lang.Class<? extends XNetProgrammer> programmerClass)
Set the Programmer class to use with the XNetProgrammerManager.XNetInitializationManager
programmerManager(java.lang.Class<? extends XNetProgrammerManager> programmerManagerClass)
Set the programmer manager to initializeXNetInitializationManager
rocoThrottleManager(java.lang.Class<? extends RocoXNetThrottleManager> rocoThrottleManagerClass)
Set the Roco Throttle Manager ClassXNetInitializationManager
sensorManager(java.lang.Class<? extends XNetSensorManager> sensorManagerClass)
Set the Sensor Manager ClassXNetInitializationManager
setDefaults()
Set the defaults to the default classes in jmri.jmrix.lenz.XNetInitializationManager
setTimeout(int timeout)
Set the initialization timeoutXNetInitializationManager
throttleManager(java.lang.Class<? extends XNetThrottleManager> throttleManagerClass)
Set the Throttle Manager ClassXNetInitializationManager
turnoutManager(java.lang.Class<? extends XNetTurnoutManager> turnoutManagerClass)
Set the Turnout Manager ClassXNetInitializationManager
versionCheck()
Set the version check flag to true.
-
-
-
Constructor Detail
-
XNetInitializationManager
public XNetInitializationManager()
-
-
Method Detail
-
versionCheck
public XNetInitializationManager versionCheck()
Set the version check flag to true.- Returns:
- this initializer
-
setTimeout
public XNetInitializationManager setTimeout(int timeout)
Set the initialization timeout- Parameters:
timeout
- value in ms.- Returns:
- this initializer.
-
memo
public XNetInitializationManager memo(XNetSystemConnectionMemo systemMemo)
Set the memo to initialize- Parameters:
systemMemo
- the memo- Returns:
- this initializer
-
setDefaults
public XNetInitializationManager setDefaults()
Set the defaults to the default classes in jmri.jmrix.lenz.This methods sets the default values for Lenz command stations and the Roco MultiMaus and LokMaus. Use with
versionCheck
andsetTimeout(int)
to automatically configure these systems.- Returns:
- this initializer
-
powerManager
public XNetInitializationManager powerManager(java.lang.Class<? extends XNetPowerManager> powerManagerClass)
Set the power Manager class- Parameters:
powerManagerClass
- the power manager class to use- Returns:
- this initializer
-
programmer
public XNetInitializationManager programmer(java.lang.Class<? extends XNetProgrammer> programmerClass)
Set the Programmer class to use with the XNetProgrammerManager.- Parameters:
programmerClass
- the programmer class to use- Returns:
- this initializer.
-
noCommandStation
public XNetInitializationManager noCommandStation()
-
programmerManager
public XNetInitializationManager programmerManager(java.lang.Class<? extends XNetProgrammerManager> programmerManagerClass)
Set the programmer manager to initialize- Parameters:
programmerManagerClass
- the programmer class to use.- Returns:
- this initializer.
-
throttleManager
public XNetInitializationManager throttleManager(java.lang.Class<? extends XNetThrottleManager> throttleManagerClass)
Set the Throttle Manager Class- Parameters:
throttleManagerClass
- the Throttle Manager Class to use.- Returns:
- this initializer
-
rocoThrottleManager
public XNetInitializationManager rocoThrottleManager(java.lang.Class<? extends RocoXNetThrottleManager> rocoThrottleManagerClass)
Set the Roco Throttle Manager Class- Parameters:
rocoThrottleManagerClass
- the Roco Throttle Manager Class to use.- Returns:
- this initializer
-
turnoutManager
public XNetInitializationManager turnoutManager(java.lang.Class<? extends XNetTurnoutManager> turnoutManagerClass)
Set the Turnout Manager Class- Parameters:
turnoutManagerClass
- the Turnout Manager Class to use.- Returns:
- this initializer
-
sensorManager
public XNetInitializationManager sensorManager(java.lang.Class<? extends XNetSensorManager> sensorManagerClass)
Set the Sensor Manager Class- Parameters:
sensorManagerClass
- the Sensor Manager Class to use.- Returns:
- this initializer
-
lightManager
public XNetInitializationManager lightManager(java.lang.Class<? extends XNetLightManager> lightManagerClass)
Set the Light Manager Class- Parameters:
lightManagerClass
- the Light Manager Class to use.- Returns:
- this initializer
-
consistManager
public XNetInitializationManager consistManager(java.lang.Class<? extends XNetConsistManager> consistManagerClass)
Set the Consist Manager Class- Parameters:
consistManagerClass
- the Consist Manager Class to use.- Returns:
- this initializer
-
init
public void init()
-
-