Browse Source

Add new CBD model for algebraic CBDs

Yentl Van Tendeloo 7 years ago
parent
commit
4602109c59
1 changed files with 43 additions and 0 deletions
  1. 43 0
      models/cbd_alg_design.mvc

+ 43 - 0
models/cbd_alg_design.mvc

@@ -0,0 +1,43 @@
+include "primitives.alh"
+
+Class Float {}
+Class String {}
+
+Class Block{}
+
+Class ConstantBlock{
+    name = "Constant"
+    value : Float {
+        target_lower_cardinality = 1
+        target_upper_cardinality = 1
+    }
+}
+
+Class AdditionBlock{
+    name = "Addition"
+}
+Class NegatorBlock{
+    name = "Negator"
+}
+Class MultiplyBlock{
+    name = "Multiply"
+}
+Class InverseBlock{
+    name = "Inverse"
+}
+Class ProbeBlock{
+    name = "Probe"
+    name : String {
+        target_lower_cardinality = 1
+        target_upper_cardinality = 1
+    }
+}
+
+Association Link(Block, Block){}
+
+Inheritance (ConstantBlock, Block){}
+Inheritance (AdditionBlock, Block){}
+Inheritance (NegatorBlock, Block){}
+Inheritance (MultiplyBlock, Block){}
+Inheritance (InverseBlock, Block){}
+Inheritance (ProbeBlock, Block){}