Package jmri.jmrit.withrottle
Class FastClockController
- java.lang.Object
-
- jmri.jmrit.withrottle.AbstractController
-
- jmri.jmrit.withrottle.FastClockController
-
public class FastClockController extends AbstractController
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 Constructor Description FastClockController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidderegister()Deregister as listener of NamedBeans(package private) voidhandleMessage(java.lang.String message, DeviceServer deviceServer)Break down a message and use it.(package private) voidregister()Register as listener of NamedBeans to be updated of changes.voidsendFastTimeAndRate()Send Time and Rate.(package private) booleanverifyCreation()isValid is used to indicate if the Controller is created.-
Methods inherited from class jmri.jmrit.withrottle.AbstractController
addControllerListener, buildList, checkCanBuildList, filterList, removeControllerListener
-
-
-
-
Constructor Detail
-
FastClockController
public FastClockController()
-
-
Method Detail
-
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
void handleMessage(java.lang.String message, DeviceServer deviceServer)
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
public void 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.
-
-