-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Global clock #5773
Comments
From initial discussions, and in the interest of maintaining backwards compatibility, we will retain (and deprecate) the existing time API methods - A new set of getters and setters will be implemented to enhance the Time API as follows: Methods
NOTE: Calls to the new methods will emit new events, while calls to the old methods will emit old events. |
Testing Clocks, Timers, Clock Indicator
Testing Time Conductor (TC)
Inputs popups
Testing Independent Time Conductors (ITC)Available in plot views in a Layout - to test, add to a layout.
Reference ImagesMain TC, fixed timeMain TC with truncation, fixed timeMain TC with inputs popup, fixed timeMain TC, real-timeMain TC with truncation, real-timeMain TC with inputs popup, real-timeMain TC with super menuIndependent TC example |
* Fixed #4975 - Compact Time Conductor styling * Fixed #5773 - Ubiquitous global clock * Mode functionality added to TimeAPI * TimeAPI modified to always have a ticking clock * Mode dropdown added to independent and regular time conductors * Overall conductor appearance modifications and enhancements * TimeAPI methods deprecated with warnings * Significant updates to markup, styling and behavior of main Time Conductor and independent version. --------- Co-authored-by: Charles Hacskaylo <[email protected]> Co-authored-by: Shefali <[email protected]> Co-authored-by: Andrew Henry <[email protected]> Co-authored-by: John Hill <[email protected]> Co-authored-by: Scott Bell <[email protected]>
Issues found: #6811 |
Is your feature request related to a problem? Please describe.
Open MCT should provide a clock that is always ticking, irrespective of time conductor mode, to provide a canonical time value for "now". Many plugins need to know what the current time is according to the configured time system and clock, even if the time conductor is in "fixed" mode.
eg. Displays such as the time list view which display a moving "now" line relative to scheduled activities in the past and future.
Date.now()
cannot be used for this purpose because Open MCT must support simulated times in the past and future, as well as non-terrestrial time systems.Describe the solution you'd like
Stage 1: Separate the selection of "mode" from the selection of the "clock"
Stage 2: Add API support for a canonical Open MCT clock
mode()
getter/setter to time contexts. Setting themode
toreal-time
will start the configured clock, and cause the conductor's time context to automatically follow that clock, automatically updating the bounds as it currently does when following a clock. Setting themode
tofixed
will stop the currently configured clock.clock()
setter that clock is also immediately started. The time context will only follow the clock if themode
is set to "real-time".Stage 3: Refactor Clocks and Timers to follow the Open MCT clock instead of the wall clock
Stage 4: Modify Notebook entry timestamps to use the Open MCT clock instead of the wall clock.
** Open Questions**
Date.now()
for this. Although it might cause some user confusion, we need to know the wall-clock time that objects were created and modified for various API-internal reasons.The text was updated successfully, but these errors were encountered: