Package jmri.jmrit.withrottle
Class FastClockController
java.lang.Object
jmri.jmrit.withrottle.AbstractController
jmri.jmrit.withrottle.FastClockController
Fast Clock interface for Wi-Fi throttles.
Fast Clock display on devices will be synchronized with hardware or software clock. Time is UTC seconds on Wi-Fi devices, Local milliseconds in JMRI.
-
Field Summary
Fields inherited from class jmri.jmrit.withrottle.AbstractController
canBuildList, isValid, listeners, sysNameList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidDeregister as listener of NamedBeans(package private) voidhandleMessage(String message, DeviceServer deviceServer) Break down a message and use it.(package private) voidregister()Register as listener of NamedBeans to be updated of changes.voidSend Time and Rate.(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
-
FastClockController
public FastClockController()
-
-
Method Details
-
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- message for controller to parse and take actiondeviceServer- DeviceServer that sent this message, used to send response messages to proper client
-
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
-
sendFastTimeAndRate
Send Time and Rate.Time on device will update to the value that is sent and rate will allow Fast Clock to keep its own time. A rate == 0 will tell the device to stop the clock.
-