architecture.mvc 557 B

12345678910111213141516171819202122232425
  1. include "primitives.alh"
  2. SimpleClassDiagram Architecture{
  3. SimpleAttribute String{
  4. constraint = $
  5. String function constraint(model : Element, name : String):
  6. if (is_physical_string(model["model"][name])):
  7. return "OK"!
  8. else:
  9. return "String has non-string value"!
  10. $
  11. }
  12. Class Group {
  13. name : String
  14. }
  15. Class Port {
  16. name : String
  17. }
  18. Association Connects (Port, Port) {}
  19. Association Contains (Group, Port) {}
  20. }