Package jmri.jmrit.withrottle
Class ConsistController
java.lang.Object
jmri.jmrit.withrottle.AbstractController
jmri.jmrit.withrottle.ConsistController
- All Implemented Interfaces:
EventListener,ProgListener
-
Field Summary
Fields inherited from class jmri.jmrit.withrottle.AbstractController
canBuildList, isValid, listeners, sysNameListFields inherited from interface jmri.ProgListener
CommError, ConfirmFailed, FailedTimeout, NoAck, NoLocoDetected, NotImplemented, OK, ProgrammerBusy, ProgrammingShort, SequenceError, UnknownError, UserAborted -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck to see if an address will try to broadcast (0) a programming message.(package private) voidDeregister as listener of NamedBeans(package private) voidhandleMessage(String message, DeviceServer deviceServer) Break down a message and use it.voidprogrammingOpReply(int value, int status) Receive a callback at the end of a programming operation.(package private) voidregister()Register as listener of NamedBeans to be updated of changes.voidvoidAllows device to decide how to handle consisting.voidvoidsetIsConsistAllowed(boolean b) static DccLocoAddress(package private) booleanisValid is used to indicate if the Controller is created.Methods inherited from class jmri.jmrit.withrottle.AbstractController
addControllerListener, buildList, checkCanBuildList, filterList, removeControllerListener
-
Constructor Details
-
ConsistController
public ConsistController()
-
-
Method Details
-
sendConsistListType
Allows device to decide how to handle consisting. Just selection or selection and Make and Break. .size() indicates how many consists are being sent so the device can wait before displaying them -
sendAllConsistData
-
sendDataForConsist
-
setIsConsistAllowed
-
verifyCreation
boolean verifyCreation()Description copied from class:AbstractControllerisValid is used to indicate if the Controller is created. If false, we can null the controller and reduce overhead.- Specified by:
verifyCreationin classAbstractController- Returns:
- isValid
-
handleMessage
Description copied from class:AbstractControllerBreak down a message and use it.- Specified by:
handleMessagein classAbstractController- Parameters:
message- string containing new consist informationdeviceServer- DeviceServer that sent this message, used to send response messages to proper client
-
programmingOpReply
Description copied from interface:ProgListenerReceive a callback at the end of a programming operation.- Specified by:
programmingOpReplyin interfaceProgListener- 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
-
checkForBroadcastAddress
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
-
register
void register()Description copied from class:AbstractControllerRegister as listener of NamedBeans to be updated of changes.- Specified by:
registerin classAbstractController
-
deregister
void deregister()Description copied from class:AbstractControllerDeregister as listener of NamedBeans- Specified by:
deregisterin classAbstractController
-