jmri.jmrit.withrottle
Class ConsistController
java.lang.Object
jmri.jmrit.withrottle.AbstractController
jmri.jmrit.withrottle.ConsistController
- All Implemented Interfaces:
- EventListener, ProgListener
public class ConsistController
- extends AbstractController
- implements ProgListener
- Author:
- Brett Hoffman Copyright (C) 2010
| Fields inherited from interface jmri.ProgListener |
CommError, ConfirmFailed, FailedTimeout, NoAck, NoLocoDetected, NotImplemented, OK, ProgrammerBusy, ProgrammingShort, SequenceError, UnknownError, UserAborted |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConsistController
public ConsistController()
sendConsistListType
public void sendConsistListType()
- Allows device to decide how to handle consisting.
Just selection or selection and Make & Break.
.size() indicates how many consists are being sent so the device can wait before displaying them
sendAllConsistData
public void sendAllConsistData()
sendDataForConsist
public void sendDataForConsist(Consist con)
setIsConsistAllowed
public void setIsConsistAllowed(boolean b)
programmingOpReply
public void programmingOpReply(int value,
int status)
- Description copied from interface:
ProgListener
- Receive a callback at the end of a programming operation.
- Specified by:
programmingOpReply in interface ProgListener
- Parameters:
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.
stringToDcc
public DccLocoAddress stringToDcc(String s)
checkForBroadcastAddress
public boolean checkForBroadcastAddress(DccLocoAddress addr)
- Check to see if an address will try to broadcast (0) a programming message.
- Parameters:
addr - The address to check
- Returns:
- true if address is no good, otherwise false
Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.
Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: