jmri.jmrix.ecos
Class EcosTurnoutManager

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

public class EcosTurnoutManager
extends AbstractTurnoutManager
implements EcosListener

Implement turnout manager for Ecos systems.

System names are "UTnnn", where nnn is the turnout number without padding.

Author:
Bob Jacobsen Copyright (C) 2001, 2008

Field Summary
protected  boolean addingTurnouts
           
 
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
EcosTurnoutManager(EcosSystemConnectionMemo memo)
           
 
Method Summary
 Turnout createNewTurnout(String systemName, String userName)
          Internal method to invoke the factory, after all the logic for returning an existing method has been invoked.
 void deleteEcosTurnout(EcosTurnout et)
           
 void dispose()
          Free resources when no longer used.
 Turnout getByEcosObject(int ecosObject)
           
 String[] getEcosObjectArray()
           
 List<String> getEcosObjectList()
           
 String getSystemPrefix()
          Provides access to the system prefix string.
 void message(EcosMessage m)
           
 void propertyChange(PropertyChangeEvent e)
          The PropertyChangeListener interface in this class is intended to keep track of user name changes to individual NamedBeans.
 void refreshItems()
           
 void reply(EcosReply m)
           
 String stripChar(String s)
           
 
Methods inherited from class jmri.managers.AbstractTurnoutManager
allowMultipleAdditions, askControlType, askNumControlBits, createSystemName, getBySystemName, getByUserName, getClosedText, getDefaultClosedSpeed, getDefaultThrownSpeed, getNextValidAddress, getThrownText, getTurnout, getValidOperationTypes, getXMLOrder, isControlTypeSupported, isNumControlBitsSupported, newTurnout, provideTurnout, setDefaultClosedSpeed, setDefaultThrownSpeed, typeLetter
 
Methods inherited from class jmri.managers.AbstractManager
addPropertyChangeListener, deregister, firePropertyChange, getBeanBySystemName, getInstanceBySystemName, getInstanceByUserName, getSystemNameArray, getSystemNameList, makeSystemName, register, registerSelf, removePropertyChangeListener, systemLetter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jmri.TurnoutManager
getSystemNameList
 
Methods inherited from interface jmri.Manager
addPropertyChangeListener, deregister, getBeanBySystemName, getSystemNameArray, makeSystemName, register, removePropertyChangeListener, systemLetter
 

Field Detail

addingTurnouts

protected boolean addingTurnouts
Constructor Detail

EcosTurnoutManager

public EcosTurnoutManager(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

createNewTurnout

public Turnout createNewTurnout(String systemName,
                                String userName)
Description copied from class: AbstractTurnoutManager
Internal method to invoke the factory, after all the logic for returning an existing method has been invoked.

Specified by:
createNewTurnout in class AbstractTurnoutManager
Returns:
never null

reply

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

stripChar

public String stripChar(String s)

message

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

propertyChange

public void propertyChange(PropertyChangeEvent e)
Description copied from class: AbstractManager
The PropertyChangeListener interface in this class is intended to keep track of user name changes to individual NamedBeans. It is not completely implemented yet. In particular, listeners are not added to newly registered objects.

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

deleteEcosTurnout

public void deleteEcosTurnout(EcosTurnout et)

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

getEcosObjectList

public List<String> getEcosObjectList()

getEcosObjectArray

public String[] getEcosObjectArray()

getByEcosObject

public Turnout getByEcosObject(int ecosObject)

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