Package jmri.jmrix.loconet
Class Ln7gAccyRoutesManager
java.lang.Object
jmri.jmrix.loconet.Ln7gAccyRoutesManager
- All Implemented Interfaces:
EventListener,LocoNetListener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddDeviceRoutesRoute(String devType, int serNum, int baseNum, int[][] turnouts, RouteSwitchPositionEnum[][] positions) voiddispose()intgetDevice(int i) getDevName(int devType) intgetDevType(String deviceName) getMemo()Returns the manager's memo.voidinitContext(Object context) voidUpdate from saved data.booleanvoidMember function that will be invoked by a LocoNetInterface implementation to forward a LocoNet message from the layout.voidsaveData(int deviceType, int deviceSerNum, int deviceBaseAddr, int entrySet, int routeNum, int entrya, int entryb, int entryc, int entryd) Save 4 entries of a route.Get String which shows all 7th Gen Accy devices which can store routes, with any route data.
-
Constructor Details
-
Ln7gAccyRoutesManager
public Ln7gAccyRoutesManager()
-
-
Method Details
-
initComponents
-
initContext
-
initializeDeviceRoutes
Update from saved data. Read the file of devices/routes. -
showStoredDevicesWithRoutes
Get String which shows all 7th Gen Accy devices which can store routes, with any route data.- Returns:
- string of 7th-gen Accy devices which can have enabled routes
-
getMemo
Returns the manager's memo.- Returns:
- a LocoNetSystemConnectionMemo
-
message
Description copied from interface:LocoNetListenerMember function that will be invoked by a LocoNetInterface implementation to forward a LocoNet message from the layout.- Specified by:
messagein interfaceLocoNetListener- Parameters:
m- The received LocoNet message. Note that this same object may be presented to multiple users. It should not be modified here.
-
saveData
public void saveData(int deviceType, int deviceSerNum, int deviceBaseAddr, int entrySet, int routeNum, int entrya, int entryb, int entryc, int entryd) Save 4 entries of a route.- Parameters:
deviceType- Device type numberdeviceSerNum- Device serial numberdeviceBaseAddr- Device base addressentrySet- Entry "set" numberrouteNum- Route numberentrya- Entry Aentryb- Entry Bentryc- Entry Centryd- Entry D
-
getDevName
-
getDevType
-
loadTheXML
-
getCountOfDevicesWithRoutes
-
addDeviceRoutesRoute
public void addDeviceRoutesRoute(String devType, int serNum, int baseNum, int[][] turnouts, RouteSwitchPositionEnum[][] positions) -
addDevice
-
getDevice
-
dispose
-