File tree 5 files changed +85
-5
lines changed
version-0.5.0/writing-reactors
version-0.6.0/writing-reactors
version-0.7.0/writing-reactors
version-0.8.0/writing-reactors
5 files changed +85
-5
lines changed Original file line number Diff line number Diff line change @@ -94,13 +94,14 @@ The general structure of a reactor definition is as follows:
94
94
timer <name>([<offset>[, <period>]])
95
95
logical action <name>[: <type>]
96
96
physical action <name>[: <type>]
97
+ [const] method <name>(parameters):<type> {= ... body ...=}
97
98
reaction [<name>] (triggers) [<uses>] [-> <effects>] [{= ... body ...=}]
98
99
<instance-name> = new <class-name>([<parameter-assignments>])
99
100
<port-name> [, ...] -> <port-name> [, ...] [after <delay>]
100
101
}
101
102
```
102
103
</ShowIf >
103
- <ShowIf cpp rs >
104
+ <ShowIf cpp >
104
105
``` lf
105
106
[main] reactor <class-name> [(parameters)] {
106
107
input <name>: <type>
@@ -116,6 +117,21 @@ The general structure of a reactor definition is as follows:
116
117
}
117
118
```
118
119
</ShowIf >
120
+ <ShowIf rs >
121
+ ``` lf
122
+ [main] reactor <class-name> [(parameters)] {
123
+ input <name>: <type>
124
+ output <name>: <type>
125
+ state <name>: <type> [= <value>]
126
+ timer <name>([<offset>[, <period>]])
127
+ logical action <name>[: <type>]
128
+ physical action <name>[: <type>]
129
+ reaction [<name>] (triggers) [<uses>] [-> <effects>] [{= ... body ...=}]
130
+ <instance-name> = new <class-name>([<parameter-assignments>])
131
+ <port-name> [, ...] -> <port-name> [, ...] [after <delay>]
132
+ }
133
+ ```
134
+ </ShowIf >
119
135
<ShowIf py >
120
136
``` lf
121
137
[main or federated] reactor <class-name> [(parameters)] {
Original file line number Diff line number Diff line change @@ -94,13 +94,14 @@ The general structure of a reactor definition is as follows:
94
94
timer <name>([<offset>[, <period>]])
95
95
logical action <name>[: <type>]
96
96
physical action <name>[: <type>]
97
+ [const] method <name>(parameters):<type> {= ... body ...=}
97
98
reaction [<name>] (triggers) [<uses>] [-> <effects>] [{= ... body ...=}]
98
99
<instance-name> = new <class-name>([<parameter-assignments>])
99
100
<port-name> [, ...] -> <port-name> [, ...] [after <delay>]
100
101
}
101
102
```
102
103
</ShowIf >
103
- <ShowIf cpp rs >
104
+ <ShowIf cpp >
104
105
``` lf
105
106
[main] reactor <class-name> [(parameters)] {
106
107
input <name>: <type>
@@ -116,6 +117,21 @@ The general structure of a reactor definition is as follows:
116
117
}
117
118
```
118
119
</ShowIf >
120
+ <ShowIf rs >
121
+ ``` lf
122
+ [main] reactor <class-name> [(parameters)] {
123
+ input <name>: <type>
124
+ output <name>: <type>
125
+ state <name>: <type> [= <value>]
126
+ timer <name>([<offset>[, <period>]])
127
+ logical action <name>[: <type>]
128
+ physical action <name>[: <type>]
129
+ reaction [<name>] (triggers) [<uses>] [-> <effects>] [{= ... body ...=}]
130
+ <instance-name> = new <class-name>([<parameter-assignments>])
131
+ <port-name> [, ...] -> <port-name> [, ...] [after <delay>]
132
+ }
133
+ ```
134
+ </ShowIf >
119
135
<ShowIf py >
120
136
``` lf
121
137
[main or federated] reactor <class-name> [(parameters)] {
Original file line number Diff line number Diff line change @@ -94,13 +94,14 @@ The general structure of a reactor definition is as follows:
94
94
timer <name>([<offset>[, <period>]])
95
95
logical action <name>[: <type>]
96
96
physical action <name>[: <type>]
97
+ [const] method <name>(parameters):<type> {= ... body ...=}
97
98
reaction [<name>] (triggers) [<uses>] [-> <effects>] [{= ... body ...=}]
98
99
<instance-name> = new <class-name>([<parameter-assignments>])
99
100
<port-name> [, ...] -> <port-name> [, ...] [after <delay>]
100
101
}
101
102
```
102
103
</ShowIf >
103
- <ShowIf cpp rs >
104
+ <ShowIf cpp >
104
105
``` lf
105
106
[main] reactor <class-name> [(parameters)] {
106
107
input <name>: <type>
@@ -116,6 +117,21 @@ The general structure of a reactor definition is as follows:
116
117
}
117
118
```
118
119
</ShowIf >
120
+ <ShowIf rs >
121
+ ``` lf
122
+ [main] reactor <class-name> [(parameters)] {
123
+ input <name>: <type>
124
+ output <name>: <type>
125
+ state <name>: <type> [= <value>]
126
+ timer <name>([<offset>[, <period>]])
127
+ logical action <name>[: <type>]
128
+ physical action <name>[: <type>]
129
+ reaction [<name>] (triggers) [<uses>] [-> <effects>] [{= ... body ...=}]
130
+ <instance-name> = new <class-name>([<parameter-assignments>])
131
+ <port-name> [, ...] -> <port-name> [, ...] [after <delay>]
132
+ }
133
+ ```
134
+ </ShowIf >
119
135
<ShowIf py >
120
136
``` lf
121
137
[main or federated] reactor <class-name> [(parameters)] {
Original file line number Diff line number Diff line change @@ -94,13 +94,14 @@ The general structure of a reactor definition is as follows:
94
94
timer <name>([<offset>[, <period>]])
95
95
logical action <name>[: <type>]
96
96
physical action <name>[: <type>]
97
+ [const] method <name>(parameters):<type> {= ... body ...=}
97
98
reaction [<name>] (triggers) [<uses>] [-> <effects>] [{= ... body ...=}]
98
99
<instance-name> = new <class-name>([<parameter-assignments>])
99
100
<port-name> [, ...] -> <port-name> [, ...] [after <delay>]
100
101
}
101
102
```
102
103
</ShowIf >
103
- <ShowIf cpp rs >
104
+ <ShowIf cpp >
104
105
``` lf
105
106
[main] reactor <class-name> [(parameters)] {
106
107
input <name>: <type>
@@ -116,6 +117,21 @@ The general structure of a reactor definition is as follows:
116
117
}
117
118
```
118
119
</ShowIf >
120
+ <ShowIf rs >
121
+ ``` lf
122
+ [main] reactor <class-name> [(parameters)] {
123
+ input <name>: <type>
124
+ output <name>: <type>
125
+ state <name>: <type> [= <value>]
126
+ timer <name>([<offset>[, <period>]])
127
+ logical action <name>[: <type>]
128
+ physical action <name>[: <type>]
129
+ reaction [<name>] (triggers) [<uses>] [-> <effects>] [{= ... body ...=}]
130
+ <instance-name> = new <class-name>([<parameter-assignments>])
131
+ <port-name> [, ...] -> <port-name> [, ...] [after <delay>]
132
+ }
133
+ ```
134
+ </ShowIf >
119
135
<ShowIf py >
120
136
``` lf
121
137
[main or federated] reactor <class-name> [(parameters)] {
Original file line number Diff line number Diff line change @@ -94,13 +94,14 @@ The general structure of a reactor definition is as follows:
94
94
timer <name>([<offset>[, <period>]])
95
95
logical action <name>[: <type>]
96
96
physical action <name>[: <type>]
97
+ [const] method <name>(parameters):<type> {= ... body ...=}
97
98
reaction [<name>] (triggers) [<uses>] [-> <effects>] [{= ... body ...=}]
98
99
<instance-name> = new <class-name>([<parameter-assignments>])
99
100
<port-name> [, ...] -> <port-name> [, ...] [after <delay>]
100
101
}
101
102
```
102
103
</ShowIf >
103
- <ShowIf cpp rs >
104
+ <ShowIf cpp >
104
105
``` lf
105
106
[main] reactor <class-name> [(parameters)] {
106
107
input <name>: <type>
@@ -116,6 +117,21 @@ The general structure of a reactor definition is as follows:
116
117
}
117
118
```
118
119
</ShowIf >
120
+ <ShowIf rs >
121
+ ``` lf
122
+ [main] reactor <class-name> [(parameters)] {
123
+ input <name>: <type>
124
+ output <name>: <type>
125
+ state <name>: <type> [= <value>]
126
+ timer <name>([<offset>[, <period>]])
127
+ logical action <name>[: <type>]
128
+ physical action <name>[: <type>]
129
+ reaction [<name>] (triggers) [<uses>] [-> <effects>] [{= ... body ...=}]
130
+ <instance-name> = new <class-name>([<parameter-assignments>])
131
+ <port-name> [, ...] -> <port-name> [, ...] [after <delay>]
132
+ }
133
+ ```
134
+ </ShowIf >
119
135
<ShowIf py >
120
136
``` lf
121
137
[main or federated] reactor <class-name> [(parameters)] {
You can’t perform that action at this time.
0 commit comments