jmri.jmrix.loconet
Class LocoNetSystemConnectionMemo

java.lang.Object
  extended by jmri.jmrix.SystemConnectionMemo
      extended by jmri.jmrix.loconet.LocoNetSystemConnectionMemo
Direct Known Subclasses:
PR2SystemConnectionMemo, PR3SystemConnectionMemo

public class LocoNetSystemConnectionMemo
extends SystemConnectionMemo

Lightweight class to denote that a system is active, and provide general information.

Objects of specific subtypes are registered in the instance manager to activate their particular system.

Author:
Bob Jacobsen Copyright (C) 2010

Field Summary
protected  LocoNetThrottledTransmitter tm
           
 
Fields inherited from class jmri.jmrix.SystemConnectionMemo
sysPrefixes, userNames
 
Constructor Summary
LocoNetSystemConnectionMemo()
           
LocoNetSystemConnectionMemo(LnTrafficController lt, SlotManager sm)
           
 
Method Summary
 void configureCommandStation(boolean mCanRead, boolean mProgPowersOff, String name)
          Configure the programming manager and "command station" objects
 void configureManagers()
          Configure the common managers for LocoNet connections.
 void dispose()
           
<T> T
get(Class<?> T)
          Does this connection provide a manager of this type?
protected  ResourceBundle getActionModelResourceBundle()
           
 LnClockControl getClockControl()
           
 LocoNetConsistManager getConsistManager()
           
 LnLightManager getLightManager()
           
 LnMessageManager getLnMessageManager()
           
 LnTrafficController getLnTrafficController()
          Provides access to the TrafficController for this particular connection.
 LnPowerManager getPowerManager()
           
 ProgrammerManager getProgrammerManager()
           
 LnReporterManager getReporterManager()
           
 LnSensorManager getSensorManager()
           
 SlotManager getSlotManager()
          Provides access to the SlotManager for this particular connection.
 ThrottleManager getThrottleManager()
           
 LnTurnoutManager getTurnoutManager()
           
 boolean provides(Class<?> type)
          Tells which managers this provides by class
 void setLnTrafficController(LnTrafficController lt)
           
 void setProgrammerManager(ProgrammerManager p)
           
 void setSlotManager(SlotManager sm)
           
 void setThrottleManager(ThrottleManager t)
           
 
Methods inherited from class jmri.jmrix.SystemConnectionMemo
addPropertyChangeListener, addToActionList, getDisabled, getSystemPrefix, getUserName, notifyPropertyChangeListener, register, removeFromActionList, removePropertyChangeListener, setDisabled, setSystemPrefix, setUserName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tm

protected LocoNetThrottledTransmitter tm
Constructor Detail

LocoNetSystemConnectionMemo

public LocoNetSystemConnectionMemo(LnTrafficController lt,
                                   SlotManager sm)

LocoNetSystemConnectionMemo

public LocoNetSystemConnectionMemo()
Method Detail

getSlotManager

public SlotManager getSlotManager()
Provides access to the SlotManager for this particular connection.


setSlotManager

public void setSlotManager(SlotManager sm)

getLnTrafficController

public LnTrafficController getLnTrafficController()
Provides access to the TrafficController for this particular connection.


setLnTrafficController

public void setLnTrafficController(LnTrafficController lt)

getLnMessageManager

public LnMessageManager getLnMessageManager()

getProgrammerManager

public ProgrammerManager getProgrammerManager()

setProgrammerManager

public void setProgrammerManager(ProgrammerManager p)

configureCommandStation

public void configureCommandStation(boolean mCanRead,
                                    boolean mProgPowersOff,
                                    String name)
Configure the programming manager and "command station" objects

Parameters:
mCanRead -
mProgPowersOff -
name - Command station type name

provides

public boolean provides(Class<?> type)
Tells which managers this provides by class

Overrides:
provides in class SystemConnectionMemo

get

public <T> T get(Class<?> T)
Description copied from class: SystemConnectionMemo
Does this connection provide a manager of this type?

Overrides:
get in class SystemConnectionMemo

configureManagers

public void configureManagers()
Configure the common managers for LocoNet connections. This puts the common manager config in one place.


getPowerManager

public LnPowerManager getPowerManager()

getThrottleManager

public ThrottleManager getThrottleManager()

setThrottleManager

public void setThrottleManager(ThrottleManager t)

getTurnoutManager

public LnTurnoutManager getTurnoutManager()

getClockControl

public LnClockControl getClockControl()

getReporterManager

public LnReporterManager getReporterManager()

getSensorManager

public LnSensorManager getSensorManager()

getLightManager

public LnLightManager getLightManager()

getConsistManager

public LocoNetConsistManager getConsistManager()

getActionModelResourceBundle

protected ResourceBundle getActionModelResourceBundle()
Specified by:
getActionModelResourceBundle in class SystemConnectionMemo

dispose

public void dispose()
Overrides:
dispose in class SystemConnectionMemo


Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads