core_formalism.mvc 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. import models/SimpleClassDiagrams as SimpleClassDiagrams
  2. SimpleClassDiagrams CoreFormalism {
  3. Class String {
  4. $
  5. if (bool_not(is_physical_string(self))):
  6. return "String has no string value"!
  7. else:
  8. return "OK"!
  9. $
  10. }
  11. Class Permissions {
  12. $
  13. if (bool_not(is_physical_string(self))):
  14. return "Permissions has no string value"!
  15. else:
  16. return "OK"!
  17. $
  18. }
  19. Class Boolean {
  20. $
  21. if (bool_not(is_physical_bool(self))):
  22. return "Boolean has no bool value"!
  23. else:
  24. return "OK"!
  25. $
  26. }
  27. Class User {
  28. name : String
  29. admin : Boolean
  30. }
  31. Class Group {
  32. name : String
  33. }
  34. Association ownedBy (Group, User) {}
  35. Class Model {
  36. name : String
  37. location : String
  38. permissions : Permissions
  39. }
  40. Class Transformation {
  41. name : String
  42. location : String
  43. }
  44. Class ModelTransformation : Transformation {}
  45. Class ActionLanguage : Transformation {}
  46. }
  47. export CoreFormalism to models/CoreFormalism