Package jmri.jmrix.loconet
Class LnProgrammerManager
- java.lang.Object
-
- jmri.beans.PropertyChangeSupport
-
- jmri.managers.DefaultProgrammerManager
-
- jmri.jmrix.loconet.LnProgrammerManager
-
- All Implemented Interfaces:
AddressedProgrammerManager
,PropertyChangeFirer
,PropertyChangeProvider
,GlobalProgrammerManager
- Direct Known Subclasses:
UhlenbrockProgrammerManager
public class LnProgrammerManager extends DefaultProgrammerManager
Extend DefaultProgrammerManager to provide programmers on LocoNet.- See Also:
DefaultProgrammerManager
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static ProgrammingMode
LOCONETBD7OPSWMODE
Programming via LocoNet messages for Series 7* op switches(package private) static ProgrammingMode
LOCONETBDOPSWMODE
Programming via LocoNet messages for Digitrax DS*, PM*, BDL*, SE* boards(package private) static ProgrammingMode
LOCONETCSOPSWMODE
Programming via LocoNet messages for Digitrax Command Station op switchesstatic ProgrammingMode
LOCONETLNCVMODE
Programming for Uhlenbrock (LocoNet) LNCV protocol.static ProgrammingMode
LOCONETOPSBOARD
Programming in Ops mode via the LocoNet cable.(package private) static ProgrammingMode
LOCONETSV1MODE
Programming for LocoNet System Variables using version 1 of the protocol.static ProgrammingMode
LOCONETSV2MODE
Programming for LocoNet System Variables using version 2 of the protocol.(package private) LocoNetSystemConnectionMemo
memo
-
Fields inherited from class jmri.beans.PropertyChangeSupport
propertyChangeSupport
-
-
Constructor Summary
Constructors Constructor Description LnProgrammerManager(LocoNetSystemConnectionMemo memo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AddressedProgrammer
getAddressedProgrammer(boolean pLongAddress, int pAddress)
Gain access to a Addressed Mode Programmer without reservation.java.util.List<ProgrammingMode>
getDefaultModes()
Types implemented here.boolean
isAddressedModePossible()
Convenience method to check whether you'll be able to get an Addressed Mode programmer.AddressedProgrammer
reserveAddressedProgrammer(boolean pLongAddress, int pAddress)
Gain access to a (the) Addressed Mode Programmer, in the process reserving it for yourself.-
Methods inherited from class jmri.managers.DefaultProgrammerManager
dispose, getGlobalProgrammer, getUserName, isAddressedModePossible, isGlobalProgrammerAvailable, releaseAddressedProgrammer, releaseGlobalProgrammer, reserveGlobalProgrammer, toString
-
Methods inherited from class jmri.beans.PropertyChangeSupport
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jmri.AddressedProgrammerManager
getAddressedProgrammer, reserveAddressedProgrammer
-
Methods inherited from interface jmri.beans.PropertyChangeProvider
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
-
-
-
-
Field Detail
-
LOCONETOPSBOARD
public static final ProgrammingMode LOCONETOPSBOARD
Programming in Ops mode via the LocoNet cable.
-
LOCONETSV1MODE
static final ProgrammingMode LOCONETSV1MODE
Programming for LocoNet System Variables using version 1 of the protocol.
-
LOCONETSV2MODE
public static final ProgrammingMode LOCONETSV2MODE
Programming for LocoNet System Variables using version 2 of the protocol.
-
LOCONETLNCVMODE
public static final ProgrammingMode LOCONETLNCVMODE
Programming for Uhlenbrock (LocoNet) LNCV protocol.
-
LOCONETBDOPSWMODE
static final ProgrammingMode LOCONETBDOPSWMODE
Programming via LocoNet messages for Digitrax DS*, PM*, BDL*, SE* boards
-
LOCONETCSOPSWMODE
static final ProgrammingMode LOCONETCSOPSWMODE
Programming via LocoNet messages for Digitrax Command Station op switches
-
LOCONETBD7OPSWMODE
static final ProgrammingMode LOCONETBD7OPSWMODE
Programming via LocoNet messages for Series 7* op switches
-
-
Constructor Detail
-
LnProgrammerManager
public LnProgrammerManager(LocoNetSystemConnectionMemo memo)
-
-
Method Detail
-
isAddressedModePossible
public boolean isAddressedModePossible()
Convenience method to check whether you'll be able to get an Addressed Mode programmer. LocoNet command station does provide Ops Mode- Specified by:
isAddressedModePossible
in interfaceAddressedProgrammerManager
- Overrides:
isAddressedModePossible
in classDefaultProgrammerManager
- Returns:
- true always
-
getAddressedProgrammer
public AddressedProgrammer getAddressedProgrammer(boolean pLongAddress, int pAddress)
Gain access to a Addressed Mode Programmer without reservation.- Specified by:
getAddressedProgrammer
in interfaceAddressedProgrammerManager
- Overrides:
getAddressedProgrammer
in classDefaultProgrammerManager
- Parameters:
pLongAddress
- true if this is a long (14 bit) address, else falsepAddress
- specific decoder address to use- Returns:
- null only if there isn't an Ops Mode Programmer in the system
-
reserveAddressedProgrammer
public AddressedProgrammer reserveAddressedProgrammer(boolean pLongAddress, int pAddress)
Gain access to a (the) Addressed Mode Programmer, in the process reserving it for yourself.- Specified by:
reserveAddressedProgrammer
in interfaceAddressedProgrammerManager
- Overrides:
reserveAddressedProgrammer
in classDefaultProgrammerManager
- Parameters:
pLongAddress
- true if this is a long (14 bit) address, else falsepAddress
- Specific decoder address to use- Returns:
- null if the address is in use by a reserved programmer
-
getDefaultModes
@Nonnull public java.util.List<ProgrammingMode> getDefaultModes()
Types implemented here.- Specified by:
getDefaultModes
in interfaceAddressedProgrammerManager
- Overrides:
getDefaultModes
in classDefaultProgrammerManager
- Returns:
- a default list of programming modes that most
AddressedProgrammer
s make available
-
-