|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrix.AbstractProgrammer
jmri.jmrix.can.cbus.CbusDccProgrammer
jmri.jmrix.can.cbus.CbusDccOpsModeProgrammer
public class CbusDccOpsModeProgrammer
Provide an Ops Mode Programmer via a wrapper what works with the CBUS command station object.
Functionally, this just creates packets to send via the command station.
Programmer| Field Summary |
|---|
| 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 | |
|---|---|
CbusDccOpsModeProgrammer(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 |
reply(CanReply m)
|
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.can.cbus.CbusDccProgrammer |
|---|
controller, instance, message, notifyProgListenerEnd, notifyPropertyChange, 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 CbusDccOpsModeProgrammer(int pAddress,
boolean pLongAddr)
| Method Detail |
|---|
public void writeCV(int CV,
int val,
ProgListener p)
throws ProgrammerException
writeCV in interface ProgrammerwriteCV in class CbusDccProgrammerProgrammerException
public void readCV(int CV,
ProgListener p)
throws ProgrammerException
Programmer
readCV in interface ProgrammerreadCV in class CbusDccProgrammerProgrammerException
public void confirmCV(int CV,
int val,
ProgListener p)
throws ProgrammerException
Programmer
confirmCV in interface ProgrammerconfirmCV in class CbusDccProgrammerProgrammerExceptionpublic void setMode(int mode)
CbusDccProgrammer
setMode in interface ProgrammersetMode in class CbusDccProgrammermode - The new mode, use values from the jmri.Programmer interfacepublic int getMode()
Programmer
getMode in interface ProgrammergetMode in class CbusDccProgrammerpublic boolean hasMode(int mode)
CbusDccProgrammer
hasMode in interface ProgrammerhasMode in class CbusDccProgrammermode - Availability of this mode is returned
public void reply(CanReply m)
reply in interface CanListenerreply in class CbusDccProgrammerpublic boolean getCanRead()
getCanRead in interface ProgrammergetCanRead in class CbusDccProgrammer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||