-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpipelineNestedStream.td
More file actions
33 lines (26 loc) · 974 Bytes
/
pipelineNestedStream.td
File metadata and controls
33 lines (26 loc) · 974 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package pipelineNestedStream;
use pipelineNestedStream_types;
use pipelineNestedGroup_types;
use pipelineSimple_types;
streamlet NonNegativeFilter_interface {
std_in : pipelineNestedStream_types.NumberGroup_stream in;
std_out : pipelineNestedStream_types.NumberGroup_stream out;
}
#This is a comment#
impl NonNegativeFilter of NonNegativeFilter_interface {}
streamlet Reducer_interface {
std_in : pipelineNestedStream_types.NumberGroup_stream in;
std_out : pipelineNestedStream_types.Stats_stream out;
}
impl Reducer of Reducer_interface {}
streamlet PipelineNestedStream_interface {
std_in : pipelineNestedStream_types.NumberGroup_stream in;
std_out : pipelineNestedStream_types.Stats_stream out;
}
impl PipelineNestedStream of PipelineNestedStream_interface {
instance filter(NonNegativeFilter);
instance reducer(Reducer);
self.std_in => filter.std_in;
filter.std_out => reducer.std_in;
reducer.std_out => self.std_out;
}