Skip to content

Commit

Permalink
#27 - Began adding support for goals.
Browse files Browse the repository at this point in the history
  • Loading branch information
John Wolfe committed Jun 26, 2014
1 parent b35c3c2 commit c06116d
Show file tree
Hide file tree
Showing 4 changed files with 376 additions and 0 deletions.
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');
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');
Original file line number Diff line number Diff line change
Expand Up @@ -1176,6 +1176,54 @@ INSERT INTO DIM_ED
VALUES ("1c984d5f-b52e-4939-9c2b-a85c90354056",
"f94db881-c4fb-4667-a7e8-6b7e6475c3f4",
"61caeb60-d784-4cc9-9e84-f6fc041b2fdb");
INSERT INTO GD_GE
VALUES ("59d15bda-9ee3-4ce8-b4ba-f91d019f8f41",
"e930d804-c1ae-49d4-a019-8f76b1959949",
"be6ddd8b-37a5-4534-961b-772bb1d940ac",
21,
0,
'GPS Watch::Library::Tracking::Tracking::GoalSpec');
INSERT INTO GD_SHP
VALUES ("59d15bda-9ee3-4ce8-b4ba-f91d019f8f41");
INSERT INTO GD_NCS
VALUES ("59d15bda-9ee3-4ce8-b4ba-f91d019f8f41");
INSERT INTO DIM_ND
VALUES (205.000000,
157.000000,
"59d15bda-9ee3-4ce8-b4ba-f91d019f8f41");
INSERT INTO DIM_GE
VALUES (4524.000000,
2412.000000,
"59d15bda-9ee3-4ce8-b4ba-f91d019f8f41",
"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_ELE
VALUES ("59d15bda-9ee3-4ce8-b4ba-f91d019f8f41",
0,
"00000000-0000-0000-0000-000000000000");
INSERT INTO GD_GE
VALUES ("3887602c-a982-48ec-a090-b638417c9f19",
"e930d804-c1ae-49d4-a019-8f76b1959949",
"c1022670-c44d-401e-bb23-dfcef6084fba",
21,
0,
'GPS Watch::Library::Tracking::Tracking::Goal');
INSERT INTO GD_SHP
VALUES ("3887602c-a982-48ec-a090-b638417c9f19");
INSERT INTO GD_NCS
VALUES ("3887602c-a982-48ec-a090-b638417c9f19");
INSERT INTO DIM_ND
VALUES (205.000000,
157.000000,
"3887602c-a982-48ec-a090-b638417c9f19");
INSERT INTO DIM_GE
VALUES (4884.000000,
2412.000000,
"3887602c-a982-48ec-a090-b638417c9f19",
"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_ELE
VALUES ("3887602c-a982-48ec-a090-b638417c9f19",
0,
"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_DIA
VALUES ("e930d804-c1ae-49d4-a019-8f76b1959949",
'',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,115 @@ INSERT INTO DIM_ELE
VALUES ("e4cf2a97-fdba-446f-b35b-9cf5b81e2db6",
0,
"00000000-0000-0000-0000-000000000000");
INSERT INTO GD_GE
VALUES ("d172c232-8b09-4a27-94b6-8965487b0836",
"8c48868c-fd80-4c09-9ff7-dd45951d216a",
"75257d0c-74e6-4444-9cf1-38d5d764c999",
52,
0,
'GPS Watch::Library::Tracking::TrackingDataTypes::GoalCriteria');
INSERT INTO GD_SHP
VALUES ("d172c232-8b09-4a27-94b6-8965487b0836");
INSERT INTO GD_NCS
VALUES ("d172c232-8b09-4a27-94b6-8965487b0836");
INSERT INTO DIM_ND
VALUES (200.000000,
150.000000,
"d172c232-8b09-4a27-94b6-8965487b0836");
INSERT INTO DIM_GE
VALUES (220.000000,
0.000000,
"d172c232-8b09-4a27-94b6-8965487b0836",
"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_ELE
VALUES ("d172c232-8b09-4a27-94b6-8965487b0836",
0,
"00000000-0000-0000-0000-000000000000");
INSERT INTO GD_GE
VALUES ("f0ceffe6-32f7-4c03-9da2-f7aaaae92b0a",
"8c48868c-fd80-4c09-9ff7-dd45951d216a",
"1f8a26c0-7ed5-45b6-9d79-279b0e19b00f",
52,
0,
'GPS Watch::Library::Tracking::TrackingDataTypes::GoalSpan');
INSERT INTO GD_SHP
VALUES ("f0ceffe6-32f7-4c03-9da2-f7aaaae92b0a");
INSERT INTO GD_NCS
VALUES ("f0ceffe6-32f7-4c03-9da2-f7aaaae92b0a");
INSERT INTO DIM_ND
VALUES (200.000000,
150.000000,
"f0ceffe6-32f7-4c03-9da2-f7aaaae92b0a");
INSERT INTO DIM_GE
VALUES (440.000000,
0.000000,
"f0ceffe6-32f7-4c03-9da2-f7aaaae92b0a",
"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_ELE
VALUES ("f0ceffe6-32f7-4c03-9da2-f7aaaae92b0a",
0,
"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_DIA
VALUES ("8c48868c-fd80-4c09-9ff7-dd45951d216a",
'',
1.000000,
4000.000000,
3000.000000,
"00000000-0000-0000-0000-000000000000");
INSERT INTO S_DT
VALUES ("75257d0c-74e6-4444-9cf1-38d5d764c999",
"00000000-0000-0000-0000-000000000000",
'GoalCriteria',
'The criteria type for a particular workout goal. ',
'');
INSERT INTO S_EDT
VALUES ("75257d0c-74e6-4444-9cf1-38d5d764c999");
INSERT INTO S_ENUM
VALUES ("5022602d-4d1a-472b-9fba-a5718549d326",
'HeartRate',
'A heart-rate criteria is specified as a range of heart rates between
minimum and maximum values, in beats per minute.',
"75257d0c-74e6-4444-9cf1-38d5d764c999",
"00000000-0000-0000-0000-000000000000");
INSERT INTO S_ENUM
VALUES ("17aba347-d92e-44cb-830a-0e8c1ff65bf0",
'Pace',
'A pace criteria is specified as a range of paces between
miniumum and maximum values specified in minutes per kilometer.',
"75257d0c-74e6-4444-9cf1-38d5d764c999",
"5022602d-4d1a-472b-9fba-a5718549d326");
INSERT INTO PE_PE
VALUES ("75257d0c-74e6-4444-9cf1-38d5d764c999",
1,
"37e62abd-d1c2-4241-a4cb-9aa88fabd6e8",
"00000000-0000-0000-0000-000000000000",
3);
INSERT INTO S_DT
VALUES ("1f8a26c0-7ed5-45b6-9d79-279b0e19b00f",
"00000000-0000-0000-0000-000000000000",
'GoalSpan',
'',
'');
INSERT INTO S_EDT
VALUES ("1f8a26c0-7ed5-45b6-9d79-279b0e19b00f");
INSERT INTO S_ENUM
VALUES ("5e58dd40-065c-4843-af98-bb53da1389f0",
'Distance',
'A distance-based span is specified in kilometers.',
"1f8a26c0-7ed5-45b6-9d79-279b0e19b00f",
"00000000-0000-0000-0000-000000000000");
INSERT INTO S_ENUM
VALUES ("fe7177ea-a690-4694-be9a-a9a10106deae",
'Time',
'A time-based span is specified in seconds.',
"1f8a26c0-7ed5-45b6-9d79-279b0e19b00f",
"5e58dd40-065c-4843-af98-bb53da1389f0");
INSERT INTO PE_PE
VALUES ("1f8a26c0-7ed5-45b6-9d79-279b0e19b00f",
1,
"37e62abd-d1c2-4241-a4cb-9aa88fabd6e8",
"00000000-0000-0000-0000-000000000000",
3);
INSERT INTO CNST_CSP
VALUES ("cd9009a0-95bc-4a39-851d-9c2e1820316a",
'WorkoutTimer',
Expand Down

0 comments on commit c06116d

Please sign in to comment.