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) void
deregister()
Deregister as listener of NamedBeans(package private) void
handleMessage(java.lang.String message, DeviceServer deviceServer)
Break down a message and use it.(package private) void
register()
Register as listener of NamedBeans to be updated of changes.void
sendFastTimeAndRate()
Send Time and Rate.(package private) boolean
verifyCreation()
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:AbstractController
isValid is used to indicate if the Controller is created. If false, we can null the controller and reduce overhead.- Specified by:
verifyCreation
in classAbstractController
- Returns:
- isValid
-
handleMessage
void handleMessage(java.lang.String message, DeviceServer deviceServer)
Description copied from class:AbstractController
Break down a message and use it.- Specified by:
handleMessage
in 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:AbstractController
Register as listener of NamedBeans to be updated of changes.- Specified by:
register
in classAbstractController
-
deregister
void deregister()
Description copied from class:AbstractController
Deregister as listener of NamedBeans- Specified by:
deregister
in 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.
-
-