1/*
2 * Copyright 2017, Data61, CSIRO (ABN 41 687 119 230)
3 *
4 * SPDX-License-Identifier: BSD-2-Clause
5 */
6
7import "../../interfaces/print_attributes.camkes";
8import "../Bar/Bar.camkes";
9import "../Baz/Baz.camkes";
10
11component Foo {
12    attribute string str0;
13    attribute string str1;
14    
15    provides print_attributes_iface self_pa;
16
17    provides print_attributes_iface nested_pa0;
18    provides print_attributes_iface nested_pa1;
19    provides print_attributes_iface nested_pa2;
20
21    composition {
22        component Bar nested_bar;
23        component Baz nested_baz;
24
25        export nested_bar.self_pa -> nested_pa0;
26        export nested_bar.nested_pa -> nested_pa1;
27        export nested_baz.pa -> nested_pa2;
28    }
29    configuration {
30        nested_bar.str <- str0;
31        nested_baz.str <- str1;
32    }
33}
34