|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Programmer
Provide access to the hardware DCC decoder programming capability.
Programmers come in multiple types:
You get a Programmer object from a ProgrammerManager,
which in turn can be located from the InstanceManager.
JMRI is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.
JMRI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
ProgrammerManager| Field Summary | |
|---|---|
static int |
ADDRESSMODE
NMRA "Address-only" mode. |
static int |
CBUSNODEVARMODE
CBUS mode for programming node variables. |
static int |
DIRECTBITMODE
NMRA "Direct" mode, using only the bit-wise operations |
static int |
DIRECTBYTEMODE
NMRA "Direct" mode, using only the byte-wise operations |
static int |
NONE
No programming mode available |
static int |
OPSACCBITMODE
NMRA "Programming on the main" mode for stationary decoders, using only the bit-wise operations. |
static int |
OPSACCBYTEMODE
NMRA "Programming on the main" mode for stationary decoders, using only the byte-wise operations. |
static int |
OPSACCEXTBITMODE
NMRA "Programming on the main" mode for stationary decoders, using only the bit-wise operations and "extended" addressing. |
static int |
OPSACCEXTBYTEMODE
NMRA "Programming on the main" mode for stationary decoders, using only the byte-wise operations and "extended" addressing. |
static int |
OPSBITMODE
NMRA "Operations" or "Programming on the main" mode, using only the bit-wise operations |
static int |
OPSBYTEMODE
NMRA "Operations" or "Programming on the main" mode, using only the byte-wise operations |
static int |
PAGEMODE
NMRA "Paged" mode |
static int |
REGISTERMODE
NMRA "Register" mode |
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener p)
|
void |
confirmCV(int CV,
int val,
ProgListener p)
Confirm the value of a CV using the specified programming mode. |
String |
decodeErrorCode(int i)
|
boolean |
getCanRead()
|
int |
getMode()
Get the current programming mode |
boolean |
hasMode(int mode)
Check if a given mode is available |
void |
readCV(int CV,
ProgListener p)
Perform a CV read in the system-specific manner, and using the specified programming mode. |
void |
removePropertyChangeListener(PropertyChangeListener p)
|
void |
setMode(int mode)
Set the programmer to a particular mode. |
void |
writeCV(int CV,
int val,
ProgListener p)
Perform a CV write in the system-specific manner, and using the specified programming mode. |
| Field Detail |
|---|
static final int NONE
static final int REGISTERMODE
static final int PAGEMODE
static final int DIRECTBITMODE
static final int DIRECTBYTEMODE
static final int ADDRESSMODE
static final int OPSBYTEMODE
static final int OPSBITMODE
static final int OPSACCBYTEMODE
static final int OPSACCBITMODE
static final int OPSACCEXTBYTEMODE
static final int OPSACCEXTBITMODE
static final int CBUSNODEVARMODE
| Method Detail |
|---|
void writeCV(int CV,
int val,
ProgListener p)
throws ProgrammerException
ProgrammerException
void readCV(int CV,
ProgListener p)
throws ProgrammerException
ProgrammerException
void confirmCV(int CV,
int val,
ProgListener p)
throws ProgrammerException
ProgrammerExceptionvoid setMode(int mode)
mode - One of the class-constant mode valuesint getMode()
boolean hasMode(int mode)
mode - Availability of this mode is returned
boolean getCanRead()
void addPropertyChangeListener(PropertyChangeListener p)
void removePropertyChangeListener(PropertyChangeListener p)
String decodeErrorCode(int i)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||