Package jmri.jmrit.withrottle
Class TrackPowerController
java.lang.Object
jmri.jmrit.withrottle.AbstractController
jmri.jmrit.withrottle.TrackPowerController
- All Implemented Interfaces:
PropertyChangeListener,EventListener
Handle two-way communications regarding track power.
-
Field Summary
Fields inherited from class jmri.jmrit.withrottle.AbstractController
canBuildList, isValid, listeners, sysNameList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeregister as listener of NamedBeansvoidhandleMessage(String message, DeviceServer deviceServer) Break down a message and use it.voidvoidregister()Register as listener of NamedBeans to be updated of changes.voidbooleanisValid is used to indicate if the Controller is created.Methods inherited from class jmri.jmrit.withrottle.AbstractController
addControllerListener, buildList, checkCanBuildList, filterList, removeControllerListener
-
Constructor Details
-
TrackPowerController
public TrackPowerController()
-
-
Method Details
-
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- message for controller to parse and take actiondeviceServer- DeviceServer that sent this message, used to send response messages to proper client
-
sendCurrentState
-
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener
-
register
Description copied from class:AbstractControllerRegister as listener of NamedBeans to be updated of changes.- Specified by:
registerin classAbstractController
-
deregister
Description copied from class:AbstractControllerDeregister as listener of NamedBeans- Specified by:
deregisterin classAbstractController
-