Version 2 (modified by manualwiki, 13 years ago) (diff) |
---|
Interface layers
Interface layers and additional relations can define and can check wether in this architecture there are function calls, that insult the layer hierarchy or not.
Define interface layers
We can define the hierarchy of the interface layers with a list. The first element of the list is at the bottom of the layer hierarchy and the last element of the list is at the top of it. This means, that by default every layer can call functions from its own layer and the layer immediately below. The list contains tuples. Every tuple defines an interface layer: the first element of the tuple is a label with the name of the label; the second element is a list, that contains the modules, which from the layer is built. There are four ways to specify this list with:
- name of the modules: [{il1,[one1,one2]},{il2,[two1]}],
- module nodes: [{il1,[{'gn',module,2},{'gn',module,4}]},{il2,[{'gn',module,6}]}],
- list of regexps: [{il1,["^(/home/user)/[a-zA-Z0-9_/]+(/layer1)$"]},{il2,["(/layer2)$","^(/home/user/layer2/src)$"]}],
- file, that contain regexps: [{il1,["layer1"]}, {il2,["layer2"]}]. In this example layer1 and layer2 are files, which contain regexps.