jmri.jmrix.maple
Class SerialTurnoutManager
java.lang.Object
jmri.managers.AbstractManager
jmri.managers.AbstractTurnoutManager
jmri.jmrix.maple.SerialTurnoutManager
- All Implemented Interfaces:
- PropertyChangeListener, EventListener, Manager, TurnoutManager
public class SerialTurnoutManager
- extends AbstractTurnoutManager
Implement turnout manager for serial systems
System names are "KTnnn", where nnn is the turnout number without padding.
- Author:
- Bob Jacobsen Copyright (C) 2003, 2008
| 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 |
| 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, dispose, firePropertyChange, getBeanBySystemName, getInstanceBySystemName, getInstanceByUserName, getSystemNameArray, getSystemNameList, makeSystemName, propertyChange, register, registerSelf, removePropertyChangeListener, systemLetter |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SerialTurnoutManager
public SerialTurnoutManager()
getSystemPrefix
public String getSystemPrefix()
- Description copied from interface:
Manager
- Provides access to the system prefix string.
This was previously called the "System letter"
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
notifyTurnoutCreationError
public void notifyTurnoutCreationError(String conflict,
int bitNum)
- Public method to notify user of Turnout creation error.
instance
public static SerialTurnoutManager instance()
- Get from the user, the number of addressed bits used to control a turnout.
Normally this is 1, and the default routine returns 1 automatically.
Turnout Managers for systems that can handle multiple control bits
should override this method with one which asks the user to specify the
number of control bits.
If the user specifies more than one control bit, this method should
check if the additional bits are available (not assigned to another object).
If the bits are not available, this method should return 0 for number of
control bits, after informing the user of the problem.
This function is called whenever a new turnout is defined in the Turnout
table. It can also be used to set up other turnout control options, such
as pulsed control of turnout machines.
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: