Package jmri.jmrix.ecos
Class EcosOpsModeProgrammer
- java.lang.Object
-
- jmri.beans.PropertyChangeSupport
-
- jmri.jmrix.AbstractProgrammer
-
- jmri.jmrix.ecos.EcosProgrammer
-
- jmri.jmrix.ecos.EcosOpsModeProgrammer
-
- All Implemented Interfaces:
java.util.EventListener
,AddressedProgrammer
,PropertyChangeFirer
,PropertyChangeProvider
,Disposable
,AbstractMRListener
,EcosListener
,Programmer
public class EcosOpsModeProgrammer extends EcosProgrammer implements AddressedProgrammer
Provide an Ops Mode Programmer via a wrapper what works with the ECoS command station object.Functionally, this just creates packets to send via the command station.
- See Also:
Based on work by Bob Jacobsen
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jmri.Programmer
Programmer.WriteConfirmMode
-
-
Field Summary
Fields Modifier and Type Field Description (package private) int
mAddress
(package private) boolean
mLongAddr
-
Fields inherited from class jmri.jmrix.ecos.EcosProgrammer
_cv, _progRead, _val, COMMANDSENT, ecosObject, MODESENT, NOTPROGRAMMING, progState, readCommand, tc, writeCommand
-
Fields inherited from class jmri.jmrix.AbstractProgrammer
LONG_TIMEOUT, SHORT_TIMEOUT
-
Fields inherited from class jmri.beans.PropertyChangeSupport
propertyChangeSupport
-
-
Constructor Summary
Constructors Constructor Description EcosOpsModeProgrammer(EcosTrafficController tc, int pAddress, boolean pLongAddr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAddress()
int
getAddressNumber()
boolean
getCanRead()
Can this ops-mode programmer read back values?boolean
getLongAddress()
java.util.List<ProgrammingMode>
getSupportedModes()
Types implemented here.-
Methods inherited from class jmri.jmrix.ecos.EcosProgrammer
confirmCV, message, notifyProgListenerEnd, readCV, reply, timeout, useProgrammer, writeCV
-
Methods inherited from class jmri.jmrix.AbstractProgrammer
decodeErrorCode, getBestMode, getCanRead, getCanWrite, getCanWrite, getMode, getWriteConfirmMode, registerFromCV, restartTimer, setMode, startLongTimer, startShortTimer, stopTimer
-
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, toString, wait, wait, wait
-
Methods inherited from interface jmri.Programmer
addPropertyChangeListener, confirmCV, decodeErrorCode, dispose, getCanRead, getCanWrite, getCanWrite, getMode, getWriteConfirmMode, notifyProgListenerEnd, readCV, readCV, removePropertyChangeListener, setMode, writeCV
-
-
-
-
Constructor Detail
-
EcosOpsModeProgrammer
public EcosOpsModeProgrammer(EcosTrafficController tc, int pAddress, boolean pLongAddr)
-
-
Method Detail
-
getSupportedModes
@Nonnull public java.util.List<ProgrammingMode> getSupportedModes()
Types implemented here.- Specified by:
getSupportedModes
in interfaceProgrammer
- Overrides:
getSupportedModes
in classEcosProgrammer
- Returns:
- list of programming modes implemented for ECoS
-
getCanRead
public boolean getCanRead()
Can this ops-mode programmer read back values? Yes - if the locomotive decoder supports it.- Specified by:
getCanRead
in interfaceProgrammer
- Overrides:
getCanRead
in classAbstractProgrammer
- Returns:
- always true
-
getLongAddress
public boolean getLongAddress()
- Specified by:
getLongAddress
in interfaceAddressedProgrammer
-
getAddressNumber
public int getAddressNumber()
- Specified by:
getAddressNumber
in interfaceAddressedProgrammer
-
getAddress
public java.lang.String getAddress()
- Specified by:
getAddress
in interfaceAddressedProgrammer
-
-