-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcommands.txt
executable file
·88 lines (70 loc) · 1.43 KB
/
commands.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
EXPORT
------------------
atomPath = dict(name='path', arg=2, obligat=True)
atomEmpty = dict(name='path', arg=2, obligat=True)
atomPath AND atomForce AND atomTest
OR
atomEmpty AND atomForce AND atomTest
TASK
------------------
atomCreate = dict(name='create', arg=2, obligat=True)
atomShort = dict(name='create', arg=2, obligat=False)
atomShort
OR
atomCreate
OR
atomActivate
OR
atomRawImport AND atomTest
OR
atomFillFinal AND atomTest
atomShort
OR
atomCreate
OR
atomActivate
OR
(atomRawImport OR atomFillFinal) AND atomTest
Composite Pattern:
term = dict(terms, operator='AND')
atom = dict(name, arg, obligat)
Helper:
Boolean isAtom(dict)
Boolean isTerm(dict)
tree.set({name='short',arg=0})
tree.or({name='', arg=0})
tree.or({name='create', arg=2})
tree.or({name='activate', arg=2})
subtree1.set({name='test',arg=0})
subtree1.or({name='', arg=0})
subtree2.set({name='raw-import',arg=0})
subtree2.or({name='fill-final', arg=0})
subtree3.set(subtree2)
subtree3.and(subtree1)
tree.or(
new tree(subtree2)
.and(new tree(atomTest))
.or(atomEmpty)
}
Als Atom-Liste:
---------------
taskPaths = [
[atomShort]
[atomEmpty]
[atomCreate]
[atomActivate]
[atomRawImport, atomTest]
[atomRawImport]
[atomFillFinal, atomTest]
[atomFillFinal]
]
exportPaths = [
[atomPath]
[atomPath, atomForce]
[atomPath, atomTest]
[atomPath, atomForce, atomTest]
[atomNone]
[atomNone, atomForce]
[atomNone, atomTest]
[atomNone, atomForce, atomTest]
]