| 13 | |
| 14 | We can mix the ways of specifications. |
| 15 | |
| 16 | == Define additional relations == |
| 17 | |
| 18 | Between two layers we can defne a relation, which allows function calls from the first to the second layer. The definition of these additional relations available with a list, that contains this pairs in tuples. We can refer to interface layers with their names. Suppose, that we want to allow function calls from ''il1'' to ''il2'' as well as from ''il2'' to ''il4'' layer: {{{[{il1,il2},{il2,il4}]}}}. |
| 19 | |
| 20 | == Examples == |
| 21 | {{{ |
| 22 | ri:check_layered_arch([ {il1,["^(/home/user/layers/layer1)$"]}, |
| 23 | {il2,["^(/home/user/layers/layer2)$"]}, {il3,["regexp3"]}],[]). |
| 24 | |
| 25 | ri:show_layered_arch([ {il1,["^(/home/user/layers/layer1)$"]}, |
| 26 | {il2,["^(/home/user/layers/layer2)$"]}, {il3,["regexp3"]}],[]). |
| 27 | |
| 28 | ri:show_layered_arch([ {il1,["^(/home/user/layers/layer1)$"]}, |
| 29 | {il2,["^(/home/user/layers/layer2)$"]}, {il3,["regexp3"]}], |
| 30 | [{il1,il3}]). |
| 31 | }}} |