Skip to content

Commit

Permalink
reference results for "count inside" ETL operator
Browse files Browse the repository at this point in the history
  • Loading branch information
audrey-jardin committed Jan 4, 2024
1 parent 3bb7fb1 commit 12e1e2d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ model CountInside is {

// Example of function call
Boolean b1 is external;
Period P1 is [ new Event b1, new Event not b1 ];
Clock C1 is external;
Period P1 is [ new Event b1, new Event (not b1)];
Boolean b2 is external;
Clock C1 is new Clock b2;

Integer i_count_ticks_of_c1_inside_p1 is 'count' C1 'inside' P1;
};
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ model CountInside_no_ext is {

// Example of function call
Boolean b1 is if (2.5 < time) and (time < 5) then true else false;
Period P1 is [ b1, not b1 ];
Boolean b2 is if ((2 < time) and (time < 3)) or ((3.5 < time) and (time < 4.5)) then true else false;
Period P1 is [ new Event b1, new Event (not b1) ];
Boolean b2 is if ((2 < time) and (time < 3)) or ((3.5 < time) and (time < 4.5)) or ((6 < time) and (time < 7.5)) then true else false;
Clock C1 is new Clock b2;

Integer i_count_ticks_of_c1_inside_p1 is 'count' C1 'inside' P1; // Value should be 1 (there is only one tick of C1 inside Period P1)
Expand Down

0 comments on commit 12e1e2d

Please sign in to comment.