-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#27 - Began adding support for goals.
- Loading branch information
John Wolfe
committed
Jun 26, 2014
1 parent
b35c3c2
commit c06116d
Showing
4 changed files
with
376 additions
and
0 deletions.
There are no files selected for viewing
52 changes: 52 additions & 0 deletions
52
applications/gps/GPS Watch/models/GPS Watch/Library/Tracking/Tracking/Goal/Goal.xtuml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
-- BP 7.1.6 content: ModelClass syschar: 3 persistence-version: 7.1.6 | ||
|
||
INSERT INTO O_OBJ | ||
VALUES ("c1022670-c44d-401e-bb23-dfcef6084fba", | ||
'Goal', | ||
9, | ||
'Goal', | ||
'Each instance represents a particular goal as it is executing. | ||
This class knows how to evaluate whether the goal is being achieved | ||
and whether the goal has completed.', | ||
"00000000-0000-0000-0000-000000000000"); | ||
INSERT INTO O_NBATTR | ||
VALUES ("fa9000ac-0495-47fe-bbaf-66bc8f9a4f0a", | ||
"c1022670-c44d-401e-bb23-dfcef6084fba"); | ||
INSERT INTO O_BATTR | ||
VALUES ("fa9000ac-0495-47fe-bbaf-66bc8f9a4f0a", | ||
"c1022670-c44d-401e-bb23-dfcef6084fba"); | ||
INSERT INTO O_ATTR | ||
VALUES ("fa9000ac-0495-47fe-bbaf-66bc8f9a4f0a", | ||
"c1022670-c44d-401e-bb23-dfcef6084fba", | ||
"00000000-0000-0000-0000-000000000000", | ||
'isBeingAchieved', | ||
'True whenver the goal is currently being achieved, false otherwise.', | ||
'', | ||
'isBeingAchieved', | ||
0, | ||
"ba5eda7a-def5-0000-0000-000000000001", | ||
'', | ||
''); | ||
INSERT INTO O_ID | ||
VALUES (0, | ||
"c1022670-c44d-401e-bb23-dfcef6084fba"); | ||
INSERT INTO O_ID | ||
VALUES (1, | ||
"c1022670-c44d-401e-bb23-dfcef6084fba"); | ||
INSERT INTO O_ID | ||
VALUES (2, | ||
"c1022670-c44d-401e-bb23-dfcef6084fba"); | ||
INSERT INTO PE_PE | ||
VALUES ("c1022670-c44d-401e-bb23-dfcef6084fba", | ||
1, | ||
"a09220a4-d685-4338-83fd-0d42f7c7e308", | ||
"00000000-0000-0000-0000-000000000000", | ||
4); | ||
INSERT INTO EP_PKG_PROXY | ||
VALUES ("a09220a4-d685-4338-83fd-0d42f7c7e308", | ||
"00000000-0000-0000-0000-000000000000", | ||
"36a41cf7-d411-488d-99fc-74866d4fea39", | ||
'Tracking', | ||
'', | ||
0, | ||
'../Tracking.xtuml'); |
174 changes: 174 additions & 0 deletions
174
...ications/gps/GPS Watch/models/GPS Watch/Library/Tracking/Tracking/GoalSpec/GoalSpec.xtuml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,174 @@ | ||
-- BP 7.1.6 content: ModelClass syschar: 3 persistence-version: 7.1.6 | ||
|
||
INSERT INTO O_OBJ | ||
VALUES ("be6ddd8b-37a5-4534-961b-772bb1d940ac", | ||
'GoalSpec', | ||
8, | ||
'GoalSpec', | ||
'Each instance specifies one particular workout goal. The actual execution of the goal | ||
along with evaluation of whether it is currently being achieved is handled by another | ||
class, not this one.', | ||
"00000000-0000-0000-0000-000000000000"); | ||
INSERT INTO O_NBATTR | ||
VALUES ("f568c69e-b0ba-41ee-aef1-25eb2c07142f", | ||
"be6ddd8b-37a5-4534-961b-772bb1d940ac"); | ||
INSERT INTO O_BATTR | ||
VALUES ("f568c69e-b0ba-41ee-aef1-25eb2c07142f", | ||
"be6ddd8b-37a5-4534-961b-772bb1d940ac"); | ||
INSERT INTO O_ATTR | ||
VALUES ("f568c69e-b0ba-41ee-aef1-25eb2c07142f", | ||
"be6ddd8b-37a5-4534-961b-772bb1d940ac", | ||
"00000000-0000-0000-0000-000000000000", | ||
'SequenceNumber', | ||
'Workout goals are sequenced according to a number specified by the user when the goal | ||
is specified. This attribute represents that user-specified number. ', | ||
'', | ||
'SequenceNumber', | ||
0, | ||
"ba5eda7a-def5-0000-0000-000000000002", | ||
'', | ||
''); | ||
INSERT INTO O_NBATTR | ||
VALUES ("a0ebe4b4-e0e7-422f-a981-574f075629d3", | ||
"be6ddd8b-37a5-4534-961b-772bb1d940ac"); | ||
INSERT INTO O_BATTR | ||
VALUES ("a0ebe4b4-e0e7-422f-a981-574f075629d3", | ||
"be6ddd8b-37a5-4534-961b-772bb1d940ac"); | ||
INSERT INTO O_ATTR | ||
VALUES ("a0ebe4b4-e0e7-422f-a981-574f075629d3", | ||
"be6ddd8b-37a5-4534-961b-772bb1d940ac", | ||
"f568c69e-b0ba-41ee-aef1-25eb2c07142f", | ||
'Minimum', | ||
'The minimum value for the quantity associated with the goal. | ||
For example, a minimum heart rate to be maintained. | ||
The units (e.g., beats per minute or minutes per km) for this | ||
attribute are determined by another attribute indicating the | ||
type of criteria for this goal.', | ||
'', | ||
'Minimum', | ||
0, | ||
"ba5eda7a-def5-0000-0000-000000000003", | ||
'', | ||
''); | ||
INSERT INTO O_NBATTR | ||
VALUES ("1fb4cc85-9e90-4738-8de1-2abd6505cb8c", | ||
"be6ddd8b-37a5-4534-961b-772bb1d940ac"); | ||
INSERT INTO O_BATTR | ||
VALUES ("1fb4cc85-9e90-4738-8de1-2abd6505cb8c", | ||
"be6ddd8b-37a5-4534-961b-772bb1d940ac"); | ||
INSERT INTO O_ATTR | ||
VALUES ("1fb4cc85-9e90-4738-8de1-2abd6505cb8c", | ||
"be6ddd8b-37a5-4534-961b-772bb1d940ac", | ||
"a0ebe4b4-e0e7-422f-a981-574f075629d3", | ||
'Maximum', | ||
'The maximum value for the quantity associated with the goal. | ||
For example, a maximum pace to be maintained. | ||
The units (e.g., beats per minute or minutes per km) for this | ||
attribute are determined by another attribute indicating the | ||
type of criteria for this goal.', | ||
'', | ||
'Maximum', | ||
0, | ||
"ba5eda7a-def5-0000-0000-000000000003", | ||
'', | ||
''); | ||
INSERT INTO O_NBATTR | ||
VALUES ("1b9ff6a6-df69-4c3f-acfc-6dc3554b1098", | ||
"be6ddd8b-37a5-4534-961b-772bb1d940ac"); | ||
INSERT INTO O_BATTR | ||
VALUES ("1b9ff6a6-df69-4c3f-acfc-6dc3554b1098", | ||
"be6ddd8b-37a5-4534-961b-772bb1d940ac"); | ||
INSERT INTO O_ATTR | ||
VALUES ("1b9ff6a6-df69-4c3f-acfc-6dc3554b1098", | ||
"be6ddd8b-37a5-4534-961b-772bb1d940ac", | ||
"1fb4cc85-9e90-4738-8de1-2abd6505cb8c", | ||
'Span', | ||
'The span of the goal. For example, a time-based goal specifies a span | ||
as a duration or length of time, while a distance-based goal uses specifies | ||
a distance. The units for this attribute (e.g., seconds or km) are specified | ||
by another attribute indicating the type of span. | ||
', | ||
'', | ||
'Span', | ||
0, | ||
"ba5eda7a-def5-0000-0000-000000000003", | ||
'', | ||
''); | ||
INSERT INTO O_NBATTR | ||
VALUES ("dbe9b50c-a53f-4c36-951b-baea959bb4e7", | ||
"be6ddd8b-37a5-4534-961b-772bb1d940ac"); | ||
INSERT INTO O_BATTR | ||
VALUES ("dbe9b50c-a53f-4c36-951b-baea959bb4e7", | ||
"be6ddd8b-37a5-4534-961b-772bb1d940ac"); | ||
INSERT INTO O_ATTR | ||
VALUES ("dbe9b50c-a53f-4c36-951b-baea959bb4e7", | ||
"be6ddd8b-37a5-4534-961b-772bb1d940ac", | ||
"1b9ff6a6-df69-4c3f-acfc-6dc3554b1098", | ||
'CriteriaType', | ||
'', | ||
'', | ||
'CriteriaType', | ||
0, | ||
"75257d0c-74e6-4444-9cf1-38d5d764c999", | ||
'', | ||
''); | ||
INSERT INTO S_DT_PROXY | ||
VALUES ("75257d0c-74e6-4444-9cf1-38d5d764c999", | ||
"00000000-0000-0000-0000-000000000000", | ||
'GoalCriteria', | ||
'The criteria type for a particular workout goal. ', | ||
'', | ||
'../../TrackingDataTypes/TrackingDataTypes.xtuml'); | ||
INSERT INTO O_NBATTR | ||
VALUES ("1d622105-74c9-41c3-8547-4323b5540107", | ||
"be6ddd8b-37a5-4534-961b-772bb1d940ac"); | ||
INSERT INTO O_BATTR | ||
VALUES ("1d622105-74c9-41c3-8547-4323b5540107", | ||
"be6ddd8b-37a5-4534-961b-772bb1d940ac"); | ||
INSERT INTO O_ATTR | ||
VALUES ("1d622105-74c9-41c3-8547-4323b5540107", | ||
"be6ddd8b-37a5-4534-961b-772bb1d940ac", | ||
"dbe9b50c-a53f-4c36-951b-baea959bb4e7", | ||
'SpanType', | ||
'', | ||
'', | ||
'SpanType', | ||
0, | ||
"1f8a26c0-7ed5-45b6-9d79-279b0e19b00f", | ||
'', | ||
''); | ||
INSERT INTO S_DT_PROXY | ||
VALUES ("1f8a26c0-7ed5-45b6-9d79-279b0e19b00f", | ||
"00000000-0000-0000-0000-000000000000", | ||
'GoalSpan', | ||
'', | ||
'', | ||
'../../TrackingDataTypes/TrackingDataTypes.xtuml'); | ||
INSERT INTO O_ID | ||
VALUES (0, | ||
"be6ddd8b-37a5-4534-961b-772bb1d940ac"); | ||
INSERT INTO O_OIDA | ||
VALUES ("f568c69e-b0ba-41ee-aef1-25eb2c07142f", | ||
"be6ddd8b-37a5-4534-961b-772bb1d940ac", | ||
0, | ||
'SequenceNumber'); | ||
INSERT INTO O_ID | ||
VALUES (1, | ||
"be6ddd8b-37a5-4534-961b-772bb1d940ac"); | ||
INSERT INTO O_ID | ||
VALUES (2, | ||
"be6ddd8b-37a5-4534-961b-772bb1d940ac"); | ||
INSERT INTO PE_PE | ||
VALUES ("be6ddd8b-37a5-4534-961b-772bb1d940ac", | ||
1, | ||
"a09220a4-d685-4338-83fd-0d42f7c7e308", | ||
"00000000-0000-0000-0000-000000000000", | ||
4); | ||
INSERT INTO EP_PKG_PROXY | ||
VALUES ("a09220a4-d685-4338-83fd-0d42f7c7e308", | ||
"00000000-0000-0000-0000-000000000000", | ||
"36a41cf7-d411-488d-99fc-74866d4fea39", | ||
'Tracking', | ||
'', | ||
0, | ||
'../Tracking.xtuml'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters