Selaa lähdekoodia

Update rules to make them compilable (bootstrap rules)

Yentl Van Tendeloo 7 vuotta sitten
vanhempi
commit
85e5e51b76
3 muutettua tiedostoa jossa 2046 lisäystä ja 2129 poistoa
  1. 2018 2012
      bootstrap/MvK_rules.mvc
  2. 28 22
      bootstrap/MvK_rules_MM.mvc
  3. 0 95
      bootstrap/current_MvK.mvc

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 2018 - 2012
bootstrap/MvK_rules.mvc


+ 28 - 22
bootstrap/MvK_rules_MM.mvc

@@ -1,29 +1,35 @@
-SimpleAttribute String {}
-SimpleAttribute Boolean {}
+import models/SimpleClassDiagrams as SimpleClassDiagrams
 
-Class Rule {
-    name : String
-}
+SimpleClassDiagrams MvKRules_MM {
+    SimpleAttribute String {}
+    SimpleAttribute Boolean {}
 
-Class Node {
-    value? : String
-}
+    Class Rule {
+        name : String
+    }
 
-Class Match {
-    match? : Boolean
-}
-Class Create : Node {}
-Class Delete : Match {}
-Class NAC : Node {}
-Class Root : Node {}
+    Class Node {
+        value? : String
+    }
+
+    Class Match {
+        match? : Boolean
+    }
+    Class Create : Node {}
+    Class Delete : Match {}
+    Class NAC : Node {}
+    Class Root : Node {}
+
+    Association contains (Rule, Node) {}
 
-Association contains (Rule, Node) {}
+    Association Edge : Node (Node, Node) {
+        name : String
+    }
 
-Association Edge : Node (Node, Node) {
-    name : String
+    Association CreateEdge : Edge (Node, Node) {}
+    Association MatchEdge : Edge (Node, Node) {}
+    Association DeleteEdge : MatchEdge (Node, Node) {}
+    Association NACEdge : Edge (Node, Node) {}
 }
 
-Association CreateEdge : Edge (Node, Node) {}
-Association MatchEdge : Edge (Node, Node) {}
-Association DeleteEdge : MatchEdge (Node, Node) {}
-Association NACEdge : Edge (Node, Node) {}
+export MvKRules_MM to models/MvKRules_MM

+ 0 - 95
bootstrap/current_MvK.mvc

@@ -1,95 +0,0 @@
-Rule if_init {
-    Root if_init_1 {
-        type = "="
-    }
-
-    Node if_init_2 {
-        type = "="
-    }
-
-    Node if_init_3 {
-        type = "="
-    }
-
-    Node if_init_4 {
-        type = "="
-        value = "init"
-    }
-
-    Node if_init_5 {
-        type = "="
-        value = !If
-    }
-
-    Node if_init_6 {
-        type = "+"
-    }
-
-    Node if_init_7 {
-        type = "="
-    }
-
-    Node if_init_8 {
-        type = "+"
-        value = "cond"
-    }
-
-    Node if_init_9 {
-        type = "="
-    }
-
-    Edge (if_init_1, if_init_2) {
-        name = "username"
-        type = "="
-    }
-
-    Edge (if_init_2, if_init_3) {
-        name = "'frame'"
-        type = "="
-    }
-
-    Edge (if_init_3, if_init_4) {
-        name = "'phase'"
-        type = "="
-    }
-
-    Edge (if_init_3, if_init_5) {
-        name = "'IP'"
-        type = "-"
-    }
-
-    Edge (if_init_3, if_init_6) {
-        name = "'evalstack'"
-        type = "+"
-    }
-
-    Edge (if_init_3, if_init_7) {
-        name = "'prev'"
-        type = "+"
-    }
-
-    Edge (if_init_3, if_init_9) {
-        name = "'IP'"
-        type = "+"
-    }
-
-    Edge (if_init_6, if_init_7) {
-        name = "'evalstack'"
-        type = "-"
-    }
-
-    Edge (if_init_7, if_init_5) {
-        name = "'inst'"
-        type = "+"
-    }
-
-    Edge (if_init_7, if_init_8) {
-        name = "'phase'"
-        type = "+"
-    }
-
-    Edge (if_init_5, if_init_9) {
-        name = "'cond'"
-        type = "="
-    }
-}