jmri.jmrix.ecos
Class EcosLocoAddressManager

java.lang.Object
  extended by jmri.managers.AbstractManager
      extended by jmri.jmrix.ecos.EcosLocoAddressManager
All Implemented Interfaces:
PropertyChangeListener, EventListener, AbstractMRListener, EcosListener, Manager

public class EcosLocoAddressManager
extends AbstractManager
implements PropertyChangeListener, EcosListener, Manager

Managers the Ecos Loco entries within JMRI.

Author:
Kevin Dickerson

Field Summary
 
Fields inherited from class jmri.managers.AbstractManager
_tsys, _tuser
 
Fields inherited from interface jmri.Manager
AUDIO, BLOCKBOSS, BLOCKS, CONDITIONALS, IDTAGS, LAYOUTBLOCKS, LIGHTS, LOGIXS, MEMORIES, OBLOCKS, PANELFILES, REPORTERS, ROUTES, SECTIONS, SENSORGROUPS, SENSORS, SIGNALGROUPS, SIGNALHEADS, SIGNALMASTLOGICS, SIGNALMASTS, TIMEBASE, TRANSITS, TURNOUTS, WARRANTS
 
Constructor Summary
EcosLocoAddressManager(EcosSystemConnectionMemo memo)
           
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener l)
          At a minimum, subclasses must notify of changes to the list of available NamedBeans; they may have other properties that will also notify.
 void clearLocoToRoster()
           
 void deleteEcosLoco(EcosLocoAddress s)
           
 void deregister(EcosLocoAddress s)
          Forget a NamedBean Object created outside the manager.
 void dispose()
          Free resources when no longer used.
protected  void firePropertyChange(String p, Object old, Object n)
           
 EcosLocoAddress getByDccAddress(int dccAddress)
           
 EcosLocoAddress getByEcosObject(String ecosObject)
           
 String[] getEcosObjectArray()
           
 List<String> getEcosObjectList()
           
 boolean getLocoToRoster()
           
 String[] getSystemNameArray()
           
 List<String> getSystemNameList()
           
 String getSystemPrefix()
          Provides access to the system prefix string.
 int getXMLOrder()
           
 String makeSystemName(String s)
           
 void message(EcosMessage m)
           
 void monitorLocos(boolean monitor)
           
 void propertyChange(PropertyChangeEvent e)
          The PropertyChangeListener interface in this class is intended to keep track of roster entries and sync them up with the Ecos.
 EcosLocoAddress provideByDccAddress(int dccAddress)
           
 EcosLocoAddress provideByEcosObject(String ecosObject)
           
 EcosLocoAddress provideEcosLoco(String EcosObject, int DCCAddress)
           
 void refreshItems()
           
 void register(EcosLocoAddress s)
           
 void removePropertyChangeListener(PropertyChangeListener l)
          At a minimum, subclasses must notify of changes to the list of available NamedBeans; they may have other properties that will also notify.
 void reply(EcosReply m)
           
 void setLocoToRoster()
           
 boolean shutdownDispose()
           
 char typeLetter()
           
 
Methods inherited from class jmri.managers.AbstractManager
deregister, getBeanBySystemName, getInstanceBySystemName, getInstanceByUserName, register, registerSelf, systemLetter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jmri.Manager
deregister, getBeanBySystemName, register, systemLetter
 

Constructor Detail

EcosLocoAddressManager

public EcosLocoAddressManager(EcosSystemConnectionMemo memo)
Method Detail

getSystemPrefix

public String getSystemPrefix()
Description copied from interface: Manager
Provides access to the system prefix string. This was previously called the "System letter"

Specified by:
getSystemPrefix in interface Manager

typeLetter

public char typeLetter()
Specified by:
typeLetter in interface Manager
Returns:
The type letter for a specific implementation

getXMLOrder

public int getXMLOrder()
Specified by:
getXMLOrder in interface Manager
Specified by:
getXMLOrder in class AbstractManager

makeSystemName

public String makeSystemName(String s)
Specified by:
makeSystemName in interface Manager
Overrides:
makeSystemName in class AbstractManager
Returns:
A system name from a user input, typically a number.

getSystemNameArray

public String[] getSystemNameArray()
Specified by:
getSystemNameArray in interface Manager
Overrides:
getSystemNameArray in class AbstractManager

getSystemNameList

public List<String> getSystemNameList()
Specified by:
getSystemNameList in interface Manager
Overrides:
getSystemNameList in class AbstractManager

clearLocoToRoster

public void clearLocoToRoster()

setLocoToRoster

public void setLocoToRoster()

getLocoToRoster

public boolean getLocoToRoster()

provideEcosLoco

public EcosLocoAddress provideEcosLoco(String EcosObject,
                                       int DCCAddress)

provideByDccAddress

public EcosLocoAddress provideByDccAddress(int dccAddress)

provideByEcosObject

public EcosLocoAddress provideByEcosObject(String ecosObject)

getByEcosObject

public EcosLocoAddress getByEcosObject(String ecosObject)

getByDccAddress

public EcosLocoAddress getByDccAddress(int dccAddress)

getEcosObjectArray

public String[] getEcosObjectArray()

getEcosObjectList

public List<String> getEcosObjectList()

monitorLocos

public void monitorLocos(boolean monitor)

deleteEcosLoco

public void deleteEcosLoco(EcosLocoAddress s)

register

public void register(EcosLocoAddress s)

deregister

public void deregister(EcosLocoAddress s)
Forget a NamedBean Object created outside the manager.

The non-system-specific RouteManager uses this method.


dispose

public void dispose()
Description copied from interface: Manager
Free resources when no longer used. Specifically, remove all references to and from this object, so it can be garbage-collected.

Specified by:
dispose in interface Manager
Overrides:
dispose in class AbstractManager

shutdownDispose

public boolean shutdownDispose()

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener l)
Description copied from interface: Manager
At a minimum, subclasses must notify of changes to the list of available NamedBeans; they may have other properties that will also notify.

Specified by:
addPropertyChangeListener in interface Manager
Overrides:
addPropertyChangeListener in class AbstractManager

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener l)
Description copied from interface: Manager
At a minimum, subclasses must notify of changes to the list of available NamedBeans; they may have other properties that will also notify.

Specified by:
removePropertyChangeListener in interface Manager
Overrides:
removePropertyChangeListener in class AbstractManager

firePropertyChange

protected void firePropertyChange(String p,
                                  Object old,
                                  Object n)
Overrides:
firePropertyChange in class AbstractManager

propertyChange

public void propertyChange(PropertyChangeEvent e)
The PropertyChangeListener interface in this class is intended to keep track of roster entries and sync them up with the Ecos.

Specified by:
propertyChange in interface PropertyChangeListener
Overrides:
propertyChange in class AbstractManager

reply

public void reply(EcosReply m)
Specified by:
reply in interface EcosListener

message

public void message(EcosMessage m)
Specified by:
message in interface EcosListener

refreshItems

public void refreshItems()


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