architecture.mvc 448 B

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