|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrix.AbstractProgrammer
jmri.jmrix.lenz.XNetOpsModeProgrammer
public class XNetOpsModeProgrammer
Provides an Ops mode programing interface for XPressNet Currently only Byte mode is implemented, though XPressNet also supports bit mode writes for POM
Programmer| Field Summary | |
|---|---|
protected XNetTrafficController |
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 | |
|---|---|
XNetOpsModeProgrammer(int pAddress,
XNetTrafficController controller)
|
|
| 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)
Check if a given mode is available |
void |
message(XNetMessage l)
Member function that will be invoked by a XNetInterface implementation to forward a XNet message sent to the layout. |
void |
message(XNetReply l)
Member function that will be invoked by a XNetInterface implementation to forward a XNet message from the layout. |
void |
notifyTimeout(XNetMessage msg)
Member function invoked by an XNetInterface implementation to notify * a sender that an outgoing message timed out and was dropped from the * queue. |
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)
Set the programmer to a particular mode. |
protected void |
timeout()
Internal routine to handle a timeout, should be synchronized! |
void |
writeCV(int CV,
int val,
ProgListener p)
Send an ops-mode write request to the XPressnet. |
| 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 |
| Field Detail |
|---|
protected XNetTrafficController tc
| Constructor Detail |
|---|
public XNetOpsModeProgrammer(int pAddress,
XNetTrafficController controller)
| Method Detail |
|---|
public void writeCV(int CV,
int val,
ProgListener p)
throws ProgrammerException
writeCV in interface ProgrammerProgrammerException
public void readCV(int CV,
ProgListener p)
throws ProgrammerException
Programmer
readCV in interface ProgrammerProgrammerException
public void confirmCV(int CV,
int val,
ProgListener p)
throws ProgrammerException
Programmer
confirmCV in interface ProgrammerProgrammerExceptionpublic void setMode(int mode)
Programmer
setMode in interface Programmermode - One of the class-constant mode valuespublic int getMode()
Programmer
getMode in interface Programmerpublic boolean hasMode(int mode)
Programmer
hasMode in interface Programmermode - Availability of this mode is returned
public boolean getCanRead()
getCanRead in interface Programmerpublic void message(XNetReply l)
XNetListener
message in interface XNetListenerl - The received XNet message. Note that this same object
may be presented to multiple users. It should not be
modified here.public void message(XNetMessage l)
XNetListener
message in interface XNetListenerl - The received XNet message. Note that this same object
may be presented to multiple users. It should not be
modified here.public void notifyTimeout(XNetMessage msg)
XNetListener
notifyTimeout in interface XNetListenerprotected void timeout()
AbstractProgrammer
timeout in class AbstractProgrammer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||