From 97b4d54d6e71b190f75e46f67a6a27a2b802a905 Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Tue, 8 Dec 2015 18:00:19 +0000 Subject: [PATCH] Mockup for User Metric Dialog .. Balsamiq mock. .. note the use of "special" symbols in the code to introduce blocks of code that will be called at certain points, these will need to be aligned to the RideMetric class but limited to those attributes that are activity specific isRelevantForRide() initialize() compute() setValue() setCount() we may want to add other attributes like aggregate zero and lowerisbetter to the dialog too. --- doc/design/user metric dialog.bmml | 161 +++++++++++++++++++++++++++++ 1 file changed, 161 insertions(+) create mode 100644 doc/design/user metric dialog.bmml diff --git a/doc/design/user metric dialog.bmml b/doc/design/user metric dialog.bmml new file mode 100644 index 000000000..5cefaebd5 --- /dev/null +++ b/doc/design/user metric dialog.bmml @@ -0,0 +1,161 @@ + + + + + User%20Defined%20Metric + + + + + + true + Code + + + + + OK + + + + + Cancel + + + + + true + Evaluates + + + + + false + 200 + + + + + false + Watts + + + + + true + Metric + + + + + false + 200 + + + + + false + Watts + + + + + true + Imperial + + + + + %23%20Average%20Power%20%5Cr%23%20Calculated%20using%20samples%20and%20should%20work%20with%5Cr%23%20variable%20sample%20rates%20since%20it%20%5Cr%23%20accumulates%20joules%20and%20duration.%20%5Crrelevant%20%7B%20Data%20contains%20%22P%22%3B%20%7D%5Crinit%20%7B%20joules%20%3C-%200%3B%20secs%20%3C-%200%3B%20%7D%20%5Cr%5Crsample%20%7B%5Cr%09joules%20%3C-%20joules%20+%20%28POWER%20*%20RECINTSECS%29%3B%5Cr%09secs%20%3C-%20secs%20+%20RECINTSECS%3B%5Cr%20%7D%5Cr%5Crvalue%20%7B%20joules%20/%20seconds%3B%20%7D%5Crcount%20%7B%20seconds%3B%20%7D + + + + + true + Symbol + + + + + true + Description + + + + + AP + + + + + Average%20Power%20computed%20via%20Joules%20to%20account%20for%20variable%20sample%20rates. + + + + + true + Metric%20Units + + + + + true + Imperial%20Units + + + + + true + Conversion%5CrFactor + + + + + true + Conversion%5CrSum + + + + + Watts + + + + + Watts + + + + + 1.00 + + + + + 0.00 + + + + + true + Precision + + + + + 2 + + + + + true + Type + + + + + Average + + + + \ No newline at end of file