|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ProgListener
Allow notification of the completion of programming operations.
This allows a Programmer object to return delayed status, including
the CV value from a read operation.
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.
| Field Summary | |
|---|---|
static int |
CommError
Constant denoting that a communications error occured between the command station and the PC durring programming |
static int |
ConfirmFailed
Constant denoting that confirm failed, likely due to another value being present |
static int |
FailedTimeout
Constant denoting that the programming operation timed out |
static int |
NoAck
Constant denoting there was no acknowledge from the locomotive, so the CV may or may not have been written on a write. |
static int |
NoLocoDetected
Constant denoting that no decoder was detected on the programming track |
static int |
NotImplemented
Constant denoting that the request failed because it requested some unimplemented capability. |
static int |
OK
Constant denoting that the request completed correctly. |
static int |
ProgrammerBusy
Constant denoting that the request failed because the decoding hardware was already busy |
static int |
ProgrammingShort
Constant denoting that a short circuit occured while programming |
static int |
SequenceError
Constant denoting that there was an error with the programming sequence (e.g. early exit) |
static int |
UnknownError
Constant denoting the request failed, but no specific reason is known |
static int |
UserAborted
Constant denoting that the user (human or software) aborted the request before completion |
| Method Summary | |
|---|---|
void |
programmingOpReply(int value,
int status)
Receive a callback at the end of a programming operation. |
| Field Detail |
|---|
static final int OK
static final int UnknownError
static final int NoLocoDetected
static final int ProgrammerBusy
static final int NotImplemented
static final int UserAborted
static final int NoAck
static final int ConfirmFailed
static final int FailedTimeout
static final int ProgrammingShort
static final int SequenceError
static final int CommError
| Method Detail |
|---|
void programmingOpReply(int value,
int status)
value - Value from a read operation, or value written on a writestatus - Denotes the completion code. Note that this is a
bitwise combination of the various status coded defined
in this interface.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||