fun configure() { val memo: XpaSystemConnectionMemo = getSystemConnectionMemo() as XpaSystemConnectionMemo val tc: XpaTrafficController = memo.getXpaTrafficController() tc.connectPort(this) memo.setPowerManager(XpaPowerManager(tc)) jmri.InstanceManager.store(memo.getPowerManager(), PowerManager::class.java) memo.setTurnoutManager(XpaTurnoutManager(memo)) jmri.InstanceManager.store(memo.getTurnoutManager(), jmri.TurnoutManager::class.java) memo.setThrottleManager(XpaThrottleManager(memo)) jmri.InstanceManager.store(memo.getThrottleManager(), jmri.ThrottleManager::class.java) tc.startTransmitThread() sinkThread = Thread(tc) sinkThread.start() }
set up all of the other objects to operate with an XPA+Modem Connected to an XPressNet based command station connected to this port