Changes between Version 6 and Version 7 of InterfaceLayers
- Timestamp:
- May 26, 2012, 10:25:51 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
InterfaceLayers
v6 v7 19 19 == Interface functions == 20 20 21 We currently have t wo interface functions in the {{{ri}}} module: {{{check_layered_arch/2}}} and {{{show_layered_arch/2}}}. Both take two parameters, {{{{Name, ModSpecs}}}} and {{{{AllowFrom, AllowTo}}}} as described above. The function {{{ri:check_layered_arch/2}}} outputs the functions that violate the layer access restrictions, while {{{ri:show_layered_arch/2}}} visualises the layers in a graph with the layer violations highlighted.21 We currently have three interface functions in the {{{ri}}} module: {{{check_layered_arch/2}}}, {{{show_layered_arch/2}}} and {{{ri:show_layered_arch/3}}}. The first two both take two parameters: {{{{Name, ModSpecs}}}} and {{{{AllowFrom, AllowTo}}}} as described above. The third has an extra parameter, which defines the name of the generated .dot file. The function {{{ri:check_layered_arch/2}}} outputs the functions that violate the layer access restrictions, while {{{ri:show_layered_arch/2}}} and {{{ri:show_layered_arch/3}}} visualises the layers in a graph with the layer violations highlighted. 22 22 23 23 == Examples == … … 44 44 {il2,["^(/home/user/layers/layer2)$"]}, 45 45 {il3,["regexp3"]}], 46 [{il1,il3}] ).46 [{il1,il3}],"restrictions.dot"). 47 47 }}}