|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConsistListener
Allow notification of delayed consisting errors.
This allows a Consist object to return delayed status.
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 |
ALREADY_CONSISTED
An add request is not valid for this address because the locomotive is already in a consist. |
static int |
CONSIST_ERROR
An Error Occured. |
static int |
CONSIST_FULL
All of the slots available for the consist are full Note: This may not be an error. |
static int |
DELETE_ERROR
The operation failed because it is not possible to delete the locomotive |
static int |
LOCO_NOT_OPERATED
The requseted locomotive has not been oerated by this device, or is currently being operated by another device |
static int |
NONZERO_SPEED
The operation is not valid because the locomotive's speed is not zero. |
static int |
NOT_CONSIST_ADDR
The operation is not valid because the specified address is not a consist base address |
static int |
NOT_CONSISTED
A remove request is not valid for this address because the locomotive is not in a consist. |
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 |
OPERATION_SUCCESS
the Operation Completed successfully. |
static int |
STACK_FULL
The operation failed because the command station stack is full |
| Method Summary | |
|---|---|
void |
consistReply(DccLocoAddress locoaddress,
int status)
Receive notification at the end of a consisting operation. |
| Field Detail |
|---|
static final int OK
static final int NotImplemented
static final int OPERATION_SUCCESS
static final int CONSIST_ERROR
static final int CONSIST_FULL
static final int LOCO_NOT_OPERATED
static final int ALREADY_CONSISTED
static final int NOT_CONSISTED
static final int NONZERO_SPEED
static final int NOT_CONSIST_ADDR
static final int DELETE_ERROR
static final int STACK_FULL
| Method Detail |
|---|
void consistReply(DccLocoAddress locoaddress,
int status)
locoaddress - Address of specific locomotive involved, if
error is locomotive specific.status - 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 | |||||||||