|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrix.AbstractProgrammer
jmri.jmrix.nce.NceProgrammer
jmri.jmrix.nce.NceOpsModeProgrammer
public class NceOpsModeProgrammer
Provide an Ops Mode Programmer via a wrapper what works with the NCE command station object.
Functionally, this just creates packets to send via the command station.
Programmer| Field Summary |
|---|
| Fields inherited from class jmri.jmrix.nce.NceProgrammer |
|---|
_mode, tc |
| 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 | |
|---|---|
NceOpsModeProgrammer(NceTrafficController tc,
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 |
protected void |
notifyProgListenerEnd(int value,
int status)
|
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.nce.NceProgrammer |
|---|
message, 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 NceOpsModeProgrammer(NceTrafficController tc,
int pAddress,
boolean pLongAddr)
| Method Detail |
|---|
public void writeCV(int CV,
int val,
ProgListener p)
throws ProgrammerException
writeCV in interface ProgrammerwriteCV in class NceProgrammerProgrammerException
public void readCV(int CV,
ProgListener p)
throws ProgrammerException
Programmer
readCV in interface ProgrammerreadCV in class NceProgrammerProgrammerException
public void confirmCV(int CV,
int val,
ProgListener p)
throws ProgrammerException
Programmer
confirmCV in interface ProgrammerconfirmCV in class NceProgrammerProgrammerException
protected void notifyProgListenerEnd(int value,
int status)
notifyProgListenerEnd in class NceProgrammerpublic void setMode(int mode)
NceProgrammer
setMode in interface ProgrammersetMode in class NceProgrammermode - The new mode, use values from the jmri.Programmer interfacepublic int getMode()
Programmer
getMode in interface ProgrammergetMode in class NceProgrammerpublic boolean hasMode(int mode)
NceProgrammer
hasMode in interface ProgrammerhasMode in class NceProgrammermode - Availability of this mode is returned
public boolean getCanRead()
getCanRead in interface ProgrammergetCanRead in class NceProgrammer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||