Skip to content

Commit

Permalink
#29, #27 - Initialize the time stamp on HeartRateSample to provide
Browse files Browse the repository at this point in the history
support for goal-assessment of heart-rate based goals.
  • Loading branch information
John Wolfe committed Jun 10, 2014
1 parent f96455d commit fe7e01d
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- BP 7.1 content: ModelClass syschar: 3 persistence-version: 7.1.6
-- BP 7.1.6 content: ModelClass syschar: 3 persistence-version: 7.1.6

INSERT INTO O_OBJ
VALUES ("d2828038-110a-4559-8452-91651af0adcb",
Expand All @@ -11,6 +11,8 @@ from the pulse monitor or a lap marker.

During workout the TrackLog keeps track of certain measurements derived
from the sequence of events that has occurred.',
"00000000-0000-0000-0000-000000000000",
"00000000-0000-0000-0000-000000000000",
"00000000-0000-0000-0000-000000000000");
INSERT INTO O_TFR
VALUES ("0f45bbc6-da36-4b5b-a2dd-f739a6f0cbdd",
Expand Down Expand Up @@ -143,11 +145,17 @@ INSERT INTO O_TFR
'',
"ba5eda7a-def5-0000-0000-000000000000",
1,
'create object instance sample of HeartRateSample;
'// Add a new heart-rate sample and notify the UI of the current heart rate.

select one workoutTimer related by self->WorkoutTimer[R4.''is being timed by''];

// Create and initialize a new heart-rate sample.
create object instance sample of HeartRateSample;
sample.heartRate = param.heartRate;
relate self to sample across R6;
sample.time = workoutTimer.time;
relate self to sample across R6.''logs heart rate changes as'';

// notify UI of the new value
// Notify UI of the new heart rate.
self.currentHeartRate = param.heartRate;
generate Display_A2:refresh() to Display class;',
1,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- BP 7.1 content: Package syschar: 3 persistence-version: 7.1.6
-- BP 7.1.6 content: Package syschar: 3 persistence-version: 7.1.6

INSERT INTO EP_PKG
VALUES ("a09220a4-d685-4338-83fd-0d42f7c7e308",
Expand All @@ -24,7 +24,7 @@ INSERT INTO GD_MD
0,
0,
0,
'',
'4.1.10',
'GPS Watch::Library::Tracking::Tracking');
INSERT INTO GD_GE
VALUES ("7adb6fbc-4732-4c9e-a166-5bd6027ec36f",
Expand Down Expand Up @@ -752,6 +752,16 @@ INSERT INTO DIM_CON
4776.000000,
3420.000000,
"c85dddfc-7bfd-4a3a-924d-c08dfb7789fc");
INSERT INTO DIM_CON
VALUES ("4aed0cbf-eba6-4256-8e5a-857b76e5728b",
4883.000000,
3569.000000,
"c85dddfc-7bfd-4a3a-924d-c08dfb7789fc");
INSERT INTO DIM_CON
VALUES ("eca228bc-96ca-4516-b048-c45722ae5351",
4939.000000,
3514.000000,
"c85dddfc-7bfd-4a3a-924d-c08dfb7789fc");
INSERT INTO GD_GE
VALUES ("b57eef5f-7cbc-4772-b550-9373273685b3",
"e930d804-c1ae-49d4-a019-8f76b1959949",
Expand Down Expand Up @@ -918,6 +928,8 @@ from the pulse monitor or a lap marker.

During workout the TrackLog keeps track of certain measurements derived
from the sequence of events that has occurred.',
"00000000-0000-0000-0000-000000000000",
"00000000-0000-0000-0000-000000000000",
"00000000-0000-0000-0000-000000000000",
'./TrackLog/TrackLog.xtuml');
INSERT INTO R_PART
Expand All @@ -944,6 +956,8 @@ INSERT INTO O_OBJ_PROXY
'TrackPoint',
'',
"00000000-0000-0000-0000-000000000000",
"00000000-0000-0000-0000-000000000000",
"00000000-0000-0000-0000-000000000000",
'./TrackPoint/TrackPoint.xtuml');
INSERT INTO PE_PE
VALUES ("7ea6b294-af80-4908-a92d-d4dd2302915f",
Expand Down Expand Up @@ -1082,6 +1096,8 @@ upon activation/deactivation of the timer.

While being active, the WorkoutTimer should keep track of elapsed
time. Time can only be reset while being inactive. ',
"00000000-0000-0000-0000-000000000000",
"c4cafc68-b5c2-f769-2746-b4aaac0bac84",
"00000000-0000-0000-0000-000000000000",
'./WorkoutTimer/WorkoutTimer.xtuml');
INSERT INTO R_PART
Expand Down Expand Up @@ -1138,6 +1154,8 @@ INSERT INTO O_OBJ_PROXY
'LapMarker',
'',
"00000000-0000-0000-0000-000000000000",
"00000000-0000-0000-0000-000000000000",
"00000000-0000-0000-0000-000000000000",
'./LapMarker/LapMarker.xtuml');
INSERT INTO R_PART
VALUES ("d2828038-110a-4559-8452-91651af0adcb",
Expand Down Expand Up @@ -1210,6 +1228,8 @@ INSERT INTO O_OBJ_PROXY
'HeartRateSample',
'',
"00000000-0000-0000-0000-000000000000",
"00000000-0000-0000-0000-000000000000",
"00000000-0000-0000-0000-000000000000",
'./HeartRateSample/HeartRateSample.xtuml');
INSERT INTO PE_PE
VALUES ("cc5ef177-cd37-43d7-aede-2f86376bdcb9",
Expand Down

0 comments on commit fe7e01d

Please sign in to comment.