1234567891011121314151617181920212223 |
- include "primitives.alh"
- SimpleAttribute String{
- constraint = $
- String function main(model : Element, name : String):
- if (is_physical_string(model["model"][name])):
- return "OK"!
- else:
- return "String has non-string value"!
- $
- }
- Class Group {
- name : String
- }
- Class Port {
- name : String
- }
- Association Connects (Port, Port) {}
- Association Contains (Group, Port) {}
|