Skip to content

Commit

Permalink
#27 - Continued adding support for workout goals. This commit contains
Browse files Browse the repository at this point in the history
a bit of OAL that causes an internal parse error.  I will try to isolate
the offending piece of code and open an issue for it.
  • Loading branch information
John Wolfe committed Jul 9, 2014
1 parent c06116d commit 43ca709
Show file tree
Hide file tree
Showing 2 changed files with 976 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,30 @@ INSERT INTO O_OBJ
'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
'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_TFR
VALUES ("8ac30761-d43a-49d9-b7e4-c3ec442ea9f3",
"c1022670-c44d-401e-bb23-dfcef6084fba",
'create',
'',
"ba5eda7a-def5-0000-0000-000000000000",
0,
'',
3,
'',
"00000000-0000-0000-0000-000000000000");
INSERT INTO O_TPARM
VALUES ("36f92128-c2c3-44e3-bd67-bffb5fdc3e6d",
"8ac30761-d43a-49d9-b7e4-c3ec442ea9f3",
'sequenceNumber',
"ba5eda7a-def5-0000-0000-000000000002",
0,
'',
"00000000-0000-0000-0000-000000000000",
'Sequence number of the goal specification for which an instance of a goal should be created.');
INSERT INTO O_NBATTR
VALUES ("fa9000ac-0495-47fe-bbaf-66bc8f9a4f0a",
"c1022670-c44d-401e-bb23-dfcef6084fba");
Expand All @@ -18,7 +38,7 @@ INSERT INTO O_BATTR
INSERT INTO O_ATTR
VALUES ("fa9000ac-0495-47fe-bbaf-66bc8f9a4f0a",
"c1022670-c44d-401e-bb23-dfcef6084fba",
"00000000-0000-0000-0000-000000000000",
"7d60ba72-b691-4687-9636-20d33798168c",
'isBeingAchieved',
'True whenver the goal is currently being achieved, false otherwise.',
'',
Expand All @@ -27,6 +47,71 @@ INSERT INTO O_ATTR
"ba5eda7a-def5-0000-0000-000000000001",
'',
'');
INSERT INTO O_NBATTR
VALUES ("7d60ba72-b691-4687-9636-20d33798168c",
"c1022670-c44d-401e-bb23-dfcef6084fba");
INSERT INTO O_BATTR
VALUES ("7d60ba72-b691-4687-9636-20d33798168c",
"c1022670-c44d-401e-bb23-dfcef6084fba");
INSERT INTO O_ATTR
VALUES ("7d60ba72-b691-4687-9636-20d33798168c",
"c1022670-c44d-401e-bb23-dfcef6084fba",
"645a58ca-7e54-4f1b-bb56-64249dab5aaa",
'start',
'Captures the starting point of the span for this particular goal so
that the end of the goal execution period can be determined. In other
words, using the value of this attribute together with the span specified
by the associated goal specification, the goal knows it is finished.

For distance-based goals, it is expressed as the accumulated distance
in meters for the associated workout session at the time this goal
execution commenced.

For time-based goals, it is expressed as the elapsed time in seconds
for the associated workout session at the time this goal execution
commenced.',
'',
'start',
0,
"ba5eda7a-def5-0000-0000-000000000003",
'',
'');
INSERT INTO O_NBATTR
VALUES ("645a58ca-7e54-4f1b-bb56-64249dab5aaa",
"c1022670-c44d-401e-bb23-dfcef6084fba");
INSERT INTO O_BATTR
VALUES ("645a58ca-7e54-4f1b-bb56-64249dab5aaa",
"c1022670-c44d-401e-bb23-dfcef6084fba");
INSERT INTO O_ATTR
VALUES ("645a58ca-7e54-4f1b-bb56-64249dab5aaa",
"c1022670-c44d-401e-bb23-dfcef6084fba",
"00000000-0000-0000-0000-000000000000",
'ID',
'',
'',
'ID',
0,
"ba5eda7a-def5-0000-0000-000000000005",
'',
'');
INSERT INTO O_NBATTR
VALUES ("c307e400-f06b-4450-8e3c-94dadad961ff",
"c1022670-c44d-401e-bb23-dfcef6084fba");
INSERT INTO O_BATTR
VALUES ("c307e400-f06b-4450-8e3c-94dadad961ff",
"c1022670-c44d-401e-bb23-dfcef6084fba");
INSERT INTO O_ATTR
VALUES ("c307e400-f06b-4450-8e3c-94dadad961ff",
"c1022670-c44d-401e-bb23-dfcef6084fba",
"fa9000ac-0495-47fe-bbaf-66bc8f9a4f0a",
'current_state',
'',
'',
'current_state',
0,
"ba5eda7a-def5-0000-0000-000000000006",
'',
'');
INSERT INTO O_ID
VALUES (0,
"c1022670-c44d-401e-bb23-dfcef6084fba");
Expand Down
Loading

0 comments on commit 43ca709

Please sign in to comment.