|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrix.AbstractProgrammer
jmri.jmrix.easydcc.EasyDccProgrammer
jmri.jmrix.easydcc.EasyDccOpsModeProgrammer
public class EasyDccOpsModeProgrammer
Provide an Ops Mode Programmer via a wrapper what works with the EasyDcc command station object.
Functionally, this just creates packets to send via the command station.
Programmer| Field Summary |
|---|
| Fields inherited from class jmri.jmrix.easydcc.EasyDccProgrammer |
|---|
_mode |
| Fields inherited from class jmri.jmrix.AbstractProgrammer |
|---|
LONG_TIMEOUT, propListeners, SHORT_TIMEOUT |
| Fields inherited from interface jmri.Programmer |
|---|
ADDRESSMODE, CBUSNODEVARMODE, DIRECTBITMODE, DIRECTBYTEMODE, NONE, OPSACCBITMODE, OPSACCBYTEMODE, OPSACCEXTBITMODE, OPSACCEXTBYTEMODE, OPSBITMODE, OPSBYTEMODE, PAGEMODE, REGISTERMODE |
| Constructor Summary | |
|---|---|
EasyDccOpsModeProgrammer(int pAddress,
boolean pLongAddr)
|
|
| Method Summary | |
|---|---|
void |
confirmCV(int CV,
int val,
ProgListener p)
Confirm the value of a CV using the specified programming mode. |
boolean |
getCanRead()
Can this ops-mode programmer read back values? |
int |
getMode()
Get the current programming mode |
boolean |
hasMode(int mode)
Signifies mode's available |
void |
readCV(int CV,
ProgListener p)
Perform a CV read in the system-specific manner, and using the specified programming mode. |
void |
setMode(int mode)
Switch to a new programming mode. |
void |
writeCV(int CV,
int val,
ProgListener p)
Forward a write request to an ops-mode write operation |
| Methods inherited from class jmri.jmrix.easydcc.EasyDccProgrammer |
|---|
controller, message, notifyProgListenerEnd, notifyPropertyChange, progTaskStart, reply, timeout, useProgrammer |
| Methods inherited from class jmri.jmrix.AbstractProgrammer |
|---|
addPropertyChangeListener, decodeErrorCode, registerFromCV, removePropertyChangeListener, restartTimer, startLongTimer, startShortTimer, stopTimer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EasyDccOpsModeProgrammer(int pAddress,
boolean pLongAddr)
| Method Detail |
|---|
public void writeCV(int CV,
int val,
ProgListener p)
throws ProgrammerException
writeCV in interface ProgrammerwriteCV in class EasyDccProgrammerProgrammerException
public void readCV(int CV,
ProgListener p)
throws ProgrammerException
Programmer
readCV in interface ProgrammerreadCV in class EasyDccProgrammerProgrammerException
public void confirmCV(int CV,
int val,
ProgListener p)
throws ProgrammerException
Programmer
confirmCV in interface ProgrammerconfirmCV in class EasyDccProgrammerProgrammerExceptionpublic void setMode(int mode)
EasyDccProgrammer
setMode in interface ProgrammersetMode in class EasyDccProgrammermode - The new mode, use values from the jmri.Programmer interfacepublic int getMode()
Programmer
getMode in interface ProgrammergetMode in class EasyDccProgrammerpublic boolean hasMode(int mode)
EasyDccProgrammer
hasMode in interface ProgrammerhasMode in class EasyDccProgrammermode - Availability of this mode is returned
public boolean getCanRead()
getCanRead in interface ProgrammergetCanRead in class EasyDccProgrammer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||