Explorar o código

Added requirements MM

Yentl Van Tendeloo %!s(int64=8) %!d(string=hai) anos
pai
achega
b60e6a8f95
Modificáronse 1 ficheiros con 26 adicións e 0 borrados
  1. 26 0
      models/requirements.mvc

+ 26 - 0
models/requirements.mvc

@@ -0,0 +1,26 @@
+include "primitives.alh"
+
+SimpleClassDiagrams Requirements{
+    SimpleAttribute String{
+        constraint = $
+            String function constraint_String(model : Element, name : String):
+                if (is_physical_string(model["model"][name])):
+                    return "OK"!
+                else:
+                    return "String has non-string value"!
+            $
+    }
+
+    Class UseCase {
+        name : String
+        level : String
+        actors : String
+        preconditions : String
+        postconditions : String
+        main_success_scenario : String
+        alternative_scenario : String
+        alternate_scenario_misuse: String
+        special_requirements : String
+        technology : String
+    }
+}