Changes between Version 2 and Version 3 of InterfaceLayers


Ignore:
Timestamp:
Feb 22, 2012, 11:54:31 AM (13 years ago)
Author:
manualwiki
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • InterfaceLayers

    v2 v3  
    1111* list of regexps: {{{[{il1,["^(/home/user)/[a-zA-Z0-9_/]+(/layer1)$"]},{il2,["(/layer2)$","^(/home/user/layer2/src)$"]}]}}},  
    1212* file, that contain regexps: {{{[{il1,["layer1"]}, {il2,["layer2"]}]}}}. In this example ''layer1'' and ''layer2'' are files, which contain regexps. 
     13 
     14We can mix the ways of specifications. 
     15 
     16== Define additional relations == 
     17 
     18Between 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{{{ 
     22ri:check_layered_arch([ {il1,["^(/home/user/layers/layer1)$"]}, 
     23{il2,["^(/home/user/layers/layer2)$"]}, {il3,["regexp3"]}],[]). 
     24 
     25ri:show_layered_arch([ {il1,["^(/home/user/layers/layer1)$"]}, 
     26{il2,["^(/home/user/layers/layer2)$"]}, {il3,["regexp3"]}],[]). 
     27 
     28ri:show_layered_arch([ {il1,["^(/home/user/layers/layer1)$"]}, 
     29{il2,["^(/home/user/layers/layer2)$"]}, {il3,["regexp3"]}], 
     30[{il1,il3}]). 
     31}}}