Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transient federates #1695

Closed
wants to merge 180 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
180 commits
Select commit Hold shift + click to select a range
4c9d15d
Align transient-federates branches in lingua-franca and reactor-c
ChadliaJerad Mar 27, 2023
357ac7b
Add support of @transient annotation (attribute) to federate instance…
ChadliaJerad Mar 27, 2023
5c879a3
Align reactor-c
ChadliaJerad Mar 28, 2023
f6dec10
Make federate launcher aware of number of persistent and transient fe…
ChadliaJerad Mar 28, 2023
4c38151
Merge branch 'master' into transient-federates
ChadliaJerad Apr 5, 2023
96b50ed
Align reactor-c
ChadliaJerad Apr 5, 2023
5e380ff
Align reactor-c and add Timers.lf test
ChadliaJerad Apr 13, 2023
9ad1339
Add a test LF program for where the transient federate has upstream a…
ChadliaJerad Apr 14, 2023
c8fee81
Merge branch 'master' into transient-federates
ChadliaJerad Apr 14, 2023
41e0564
Align reactor-c
ChadliaJerad Apr 14, 2023
d6692d1
Add transient joining events + Align reactor-c.
ChadliaJerad Apr 18, 2023
3c76f77
Align reactor-c
ChadliaJerad Apr 25, 2023
f8b1a5a
Add transient tests
ChadliaJerad Apr 25, 2023
364a3a0
Add a transient example with a deadline, derived from the fast and sl…
ChadliaJerad Apr 25, 2023
3ac5aab
Better trace points naming
ChadliaJerad Apr 26, 2023
cb27df5
Align reactor-c
ChadliaJerad Apr 26, 2023
f19e62d
Align reactor-c
ChadliaJerad Apr 27, 2023
d7791fa
Include a special case for testing transients
ChadliaJerad Apr 27, 2023
e8349ce
Merge master into transient-federates and Align reactor-c.
ChadliaJerad May 4, 2023
53443e7
Wrong merge! Revert "Merge master into transient-federates and Align …
ChadliaJerad May 4, 2023
a0bff8a
Merge branch 'master' into transient-federates
ChadliaJerad May 4, 2023
841943c
Align reactor-c
ChadliaJerad May 4, 2023
b7e09c8
Merge branch 'master' into transient-federates
ChadliaJerad May 5, 2023
3db8435
Better trace visualization.
ChadliaJerad May 5, 2023
ca4dca4
Make trabsients joining and leaving several times appear in one same …
ChadliaJerad May 5, 2023
5bfe265
Align reactor-c
ChadliaJerad May 6, 2023
31fb913
Align reactor-c
ChadliaJerad May 23, 2023
172ca7c
Merge master into rti-refactoring.
ChadliaJerad May 24, 2023
aad29f0
Align reactor-c
ChadliaJerad May 25, 2023
5c2b46c
Align reactor-c
ChadliaJerad May 26, 2023
c4194f2
Align reactor-c, after fixing the segmentation faults and the wrong i…
ChadliaJerad May 26, 2023
bc5ed4b
Align reactor-c
ChadliaJerad May 26, 2023
c24cfc0
Re-align reactor-c
ChadliaJerad May 26, 2023
a6e6145
Re-align reactor-c
ChadliaJerad May 26, 2023
e5d3131
Get updated repo structure and align reactor-c
ChadliaJerad Jun 5, 2023
535bbbb
Align reactor-c
ChadliaJerad Jun 7, 2023
09985e1
Get the new structure from master
ChadliaJerad Jun 7, 2023
af13656
Merge branch 'master' into transient-federates
ChadliaJerad Jun 7, 2023
29a1881
Align reactor-c
ChadliaJerad Jun 7, 2023
1eccc1b
Merge branch 'master' into rti-refactoring
ChadliaJerad Jun 7, 2023
84c4311
Manual merge of the lost commit (add @transient annotations + set tra…
ChadliaJerad Jun 7, 2023
9e1ff53
Merge branch 'master' into rti-refactoring
ChadliaJerad Jun 7, 2023
ffb899e
Merge branch 'rti-refactoring' into transient-federates
ChadliaJerad Jun 7, 2023
059f052
Align reactor-c
ChadliaJerad Jun 8, 2023
2488dac
Apply formatting to transient federates exmaples and align reactor-c
ChadliaJerad Jun 8, 2023
6eb0fb4
Apply formatting
ChadliaJerad Jun 8, 2023
f061f04
Merge branch 'master' into transient-federates
ChadliaJerad Jun 8, 2023
ab0a397
Apply the updated format
ChadliaJerad Jun 9, 2023
a5bdaf8
Align reactor-c
ChadliaJerad Jun 9, 2023
d554625
Check to avoid repeated CI runs
lhstrh Jun 8, 2023
ab85faa
Run skip-duplicate-actions in check-diff workflow
lhstrh Jun 8, 2023
7393614
Augment diff checks and allow skipping if redundant
lhstrh Jun 9, 2023
5cb581d
Also do no run checks in master if changes are inconsequential
lhstrh Jun 9, 2023
d6d13e7
Consistent ordering of terms
lhstrh Jun 9, 2023
c21334d
Regex
lhstrh Jun 9, 2023
2472feb
Fix grep
lhstrh Jun 9, 2023
8d8786f
Add logic to handle build_anyway
lhstrh Jun 9, 2023
14f7ef6
Simplifications
lhstrh Jun 9, 2023
98559ab
Updated reporting
lhstrh Jun 9, 2023
f8ecb86
Indentation
lhstrh Jun 9, 2023
5c46350
Minor tweaks
lhstrh Jun 9, 2023
54ad2b6
Fix quotation problem
lhstrh Jun 9, 2023
b0430fe
Do not skip checks upon ready_for_review event
lhstrh Jun 9, 2023
ad83284
Bugfix
lhstrh Jun 9, 2023
6ba9ca8
Wording
lhstrh Jun 9, 2023
53d0a68
Wording
lhstrh Jun 9, 2023
24dede8
Point to main branch for benchmarks
lhstrh Jun 9, 2023
0f32bc9
Added annotation to influence port side or switch to free port placement
a-sr Jun 1, 2023
58c15fd
Apply formatter.
petervdonovan Jun 1, 2023
61dfa83
Update org.lflang/src/org/lflang/AttributeUtils.java
lhstrh Jun 2, 2023
5f967ba
Fix formatting
lhstrh Jun 7, 2023
33cd91b
Fix for #1834
ChadliaJerad Jun 9, 2023
efbc87e
Remove no more relevant FIXMEs
ChadliaJerad Jun 9, 2023
5d33d6d
fedsd: Add support for physical connections matching
ChadliaJerad Jun 9, 2023
cfa12d5
Fix ROS2 test configuration
cmnrd Jun 12, 2023
cba8639
fix ROS2 compilation
cmnrd Jun 11, 2023
48e5128
also pass cmake arguments in ros2 compilation
cmnrd Jun 12, 2023
734e760
also clean the install directory
cmnrd Jun 12, 2023
2da4769
update reactor-cpp
cmnrd Jun 12, 2023
3c67317
Attempt to make merge queue work again
lhstrh Jun 13, 2023
387bb93
Detect if we are running on a merge queue commit
cmnrd Jun 13, 2023
97759a3
fix typo
cmnrd Jun 13, 2023
4fa589c
Fix comment duplication issue.
petervdonovan Jun 11, 2023
f89061a
Do not destructively modify Ecore model.
petervdonovan Jun 11, 2023
b68fbd2
Do not skip doSwitch.
petervdonovan Jun 11, 2023
be759c2
Try again to fix destructive reads of init list.
petervdonovan Jun 11, 2023
b667236
Fix NPE.
petervdonovan Jun 11, 2023
d25b581
Really fix the destructive copying this time.
petervdonovan Jun 11, 2023
3d83bbc
Do not extract comments that are in code blocks.
petervdonovan Jun 13, 2023
f56bcd7
Add semicolon.
petervdonovan Jun 13, 2023
c538063
Make formatter check itself at runtime.
petervdonovan Jun 13, 2023
40588f2
Equality is symmetric.
petervdonovan Jun 13, 2023
1a165b6
Fixes in isEqual.
petervdonovan Jun 13, 2023
a9a34db
Do not capture certain comments in toText.
petervdonovan Jun 14, 2023
444fcf3
More tinkering with comments around Code eObjects.
petervdonovan Jun 14, 2023
c811b07
Reduce comment inlining.
petervdonovan Jun 14, 2023
b4c269b
Rename Utils -> Util.
petervdonovan Jun 14, 2023
3b8cae8
Do not move multiline comments out.
petervdonovan Jun 14, 2023
520df63
Add tests.
petervdonovan Jun 14, 2023
080cdc0
Remove files accidentally committed.
petervdonovan Jun 14, 2023
d1a8aca
Try to pass formatting test on Windows.
petervdonovan Jun 14, 2023
0d3e439
Remove accidental check-in.
petervdonovan Jun 15, 2023
06efc19
Merge branch 'master' into transient-federates
ChadliaJerad Jun 15, 2023
55bc361
Merge enclaves into transient-federates and align reactor-c
ChadliaJerad Jun 15, 2023
5242cdc
Merge branch 'master' into transient-federates
ChadliaJerad Jun 20, 2023
5d6bf1f
Merge branch 'master' into transient-federates
ChadliaJerad Jun 23, 2023
f998d89
Align reactor-c
ChadliaJerad Jun 23, 2023
8c584b4
Correctly implement hashcode for types.
petervdonovan Jun 22, 2023
e1c6843
Fix another name collision.
petervdonovan Jun 22, 2023
170a906
Format.
petervdonovan Jun 22, 2023
718996f
Add test case.
petervdonovan Jun 23, 2023
b2f61a9
Merge branch 'master' into transient-federates
ChadliaJerad Jun 29, 2023
d1c8e67
Merge branch 'master' into transient-federates
ChadliaJerad Jul 5, 2023
006e1de
Merge branch 'master' into transient-federates
ChadliaJerad Jul 17, 2023
635221c
Fix missing import + update example + align reactor-c
ChadliaJerad Jul 22, 2023
53249d9
Merge branch 'master' into transient-federates
ChadliaJerad Jul 22, 2023
e9c6cd6
Merge branch 'master' into transient-federates
ChadliaJerad Jul 26, 2023
08305ff
Apply spotless and aligne reactor-c
ChadliaJerad Jul 27, 2023
fef02a2
Merge branch 'master' into transient-federates
ChadliaJerad Jul 27, 2023
3753b29
Merge branch 'master' into transient-federates
ChadliaJerad Jul 28, 2023
bdaad24
Merge branch 'master' into transient-federates
ChadliaJerad Aug 1, 2023
4771453
Do not truncate output. Needed for debugging
ChadliaJerad Aug 1, 2023
d15a167
Reduce tests timeou+ Align reactor-c
ChadliaJerad Aug 3, 2023
07e0829
Apply formatter
ChadliaJerad Aug 3, 2023
e0b4588
Revert undeleting long outputs when testing.
ChadliaJerad Aug 4, 2023
71c0aac
Align reactor-c
ChadliaJerad Aug 4, 2023
88519ba
Tune the use cases
ChadliaJerad Aug 4, 2023
bdf6c0c
Add a start on a real test for transients
ChadliaJerad Aug 4, 2023
b399e6c
Add lf_get_federates_bin_directory().
petervdonovan Aug 4, 2023
88f052d
Tune transient test to pass CI + Align reactor-c
ChadliaJerad Aug 5, 2023
82fae67
Apply formatter
ChadliaJerad Aug 5, 2023
9d2b0e0
Adjust Transients.lf
ChadliaJerad Aug 5, 2023
620431c
Adjust Transients.lf again
ChadliaJerad Aug 5, 2023
b03d922
Apply formatter
ChadliaJerad Aug 5, 2023
19e3926
Merge branch 'master' into transient-federates
ChadliaJerad Aug 5, 2023
285ddbe
Fix error in example
ChadliaJerad Aug 7, 2023
ab422e5
Another trial: Use sprintf instead of strcat + Align reactor-c
ChadliaJerad Aug 7, 2023
0333cb9
Fix wrong call
ChadliaJerad Aug 7, 2023
08c2439
Fix overllokgit status !
ChadliaJerad Aug 7, 2023
4f4e66d
Refactoring of Transients.lf test
ChadliaJerad Aug 7, 2023
2525ad7
Align reactor-c
ChadliaJerad Aug 7, 2023
7383830
Apply formatter
ChadliaJerad Aug 7, 2023
a82e7a4
Align reactor-c
ChadliaJerad Aug 7, 2023
96e9d8e
Adjust Transients.lf test and align reactor-c
ChadliaJerad Aug 7, 2023
6e90273
Align reactor-c
ChadliaJerad Aug 7, 2023
e1f92ba
Align reactor-c
ChadliaJerad Aug 7, 2023
040e463
Align reactor-c
ChadliaJerad Aug 8, 2023
6585d29
Add a test of timer synchrony in transient federates + Align reactor-c
ChadliaJerad Aug 9, 2023
7e3279b
Add a test of timer synchrony in transient federates for real
ChadliaJerad Aug 9, 2023
15ec180
Merge branch 'master' into transient-federates
ChadliaJerad Aug 9, 2023
c236bac
transient is an annotation of an instantiation, not any object
ChadliaJerad Aug 14, 2023
d5269af
Remove forgoten annotation is test
ChadliaJerad Aug 14, 2023
95a61bb
Add commented attempt to validate transient annotation
ChadliaJerad Aug 14, 2023
88a42b1
Merge branch 'master' into transient-federates
ChadliaJerad Aug 15, 2023
ee129cb
Add commented template for validating transient annotation
ChadliaJerad Aug 15, 2023
209f783
Cleanup residual cod
ChadliaJerad Aug 15, 2023
3dac694
Silence warnings in transient tests + adjust timing is TransientTimer…
ChadliaJerad Aug 15, 2023
e170ce7
Fix error in TransientTimer test.
ChadliaJerad Aug 15, 2023
b16bfe7
Update transient tests to use a logical action, instead of lf_sleep()
ChadliaJerad Aug 17, 2023
638c844
Apply formatter
ChadliaJerad Aug 17, 2023
a1cbcb8
Add msg type stop to fedsd utility
ChadliaJerad Aug 18, 2023
040ef72
Align reactor-c
ChadliaJerad Aug 18, 2023
55eae62
Merge branch 'master' into transient-federates
ChadliaJerad Aug 18, 2023
4f9776b
Merge branch 'master' into transient-federates
ChadliaJerad Aug 22, 2023
46341e1
Align reactor-c
ChadliaJerad Aug 23, 2023
e567159
Stab into more meaningful tests for transients
ChadliaJerad Sep 14, 2023
7302589
Add transient annotation validation
ChadliaJerad Sep 14, 2023
390ff5f
Merge branch 'master' into transient-federates
ChadliaJerad Sep 14, 2023
c0e6bee
Merge branch 'master' into transient-federates
ChadliaJerad Sep 21, 2023
9b4dd7b
Merge branch 'master' into transient-federates
ChadliaJerad Sep 26, 2023
5a73dbb
Merge branch 'master' into transient-federates
ChadliaJerad Oct 2, 2023
f196c40
Cleaning transient tests + align reactor-c
ChadliaJerad Oct 2, 2023
a25f48b
Apply formatter
ChadliaJerad Oct 3, 2023
46fcfa0
Merge branch 'master' into transient-federates
ChadliaJerad Oct 10, 2023
6ab91f3
Check if the error is due to this declaration
ChadliaJerad Oct 10, 2023
50966b0
Align reactor-c
ChadliaJerad Oct 10, 2023
0005410
Apply formatter
ChadliaJerad Oct 10, 2023
0befb9e
Merge branch 'master' into transient-federates
ChadliaJerad Nov 13, 2023
44341ef
Align reactor-c
ChadliaJerad Nov 13, 2023
1cae831
Align reactor-c
ChadliaJerad Nov 13, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Include a special case for testing transients
  • Loading branch information
ChadliaJerad committed Apr 27, 2023
commit d7791fa78884011abf45bfd9d6fc0d83a9124862
19 changes: 12 additions & 7 deletions test/C/src/federated/transient/ConnectedTransient.lf
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
target C {
timeout: 10s,
tracing: true,
threading: true
timeout: 20s,
tracing: true
}

reactor Up(period:time = 2s) {
@@ -10,7 +9,7 @@ reactor Up(period:time = 2s) {
state count: int = 0
reaction(t) -> out {=
lf_set(out, self->count);
lf_print("Count is = %d", self->count);
lf_print("Count is = %d at (%lld, %ld)", self->count, lf_time_logical_elapsed(), lf_tag().microstep);
self->count++;
=}
}
@@ -23,19 +22,25 @@ reactor Middle {
reaction(in1) -> out {=
self->count += in1->value;
lf_set(out, self->count);
lf_print("Sending %d", self->count);
lf_print("IN1 :: Sending %d at (%lld, %ld)", self->count, lf_time_logical_elapsed(), lf_tag().microstep);
// lf_print("IN1 (New version):: Sending %d at (%lld, %ld)", self->count, lf_time_logical_elapsed(), lf_tag().microstep);
=}
reaction(in2) -> out {=
self->count += in2->value;
lf_set(out, self->count);
lf_print("Sending %d", self->count);
lf_print("IN2 :: Sending %d at (%lld, %ld)", self->count, lf_time_logical_elapsed(), lf_tag().microstep);
// lf_print("IN2 (New version):: Sending %d at (%lld, %ld)", self->count, lf_time_logical_elapsed(), lf_tag().microstep);
=}
}

reactor Down{
timer t(2s, 300ms)
input in: int
reaction(t) {=
lf_print("Timer :: at (%lld, %ld)", lf_time_logical_elapsed(), lf_tag().microstep);
=}
reaction(in) {=
lf_print("Received %d at logical time %lld", in-> value, lf_time_logical_elapsed());
lf_print("Received %d at (%lld, %ld)", in->value, lf_time_logical_elapsed(), lf_tag().microstep);
=}
}