AToMPM.alc 627 B

12345678910111213141516171819
  1. include "primitives.alh"
  2. Boolean function main(model : Element):
  3. // Contains three types of models: model, metamodel, and type_mapping.
  4. // Each with the obvious meanings.
  5. // Note that this is only a placeholder that serves as a proof of concept.
  6. // Thus only the check for multiple inheritance is being done, which checks for attributes.
  7. // A full example is given in the Modelverse's internal conformance relation.
  8. // Find all instances of classes
  9. // Figure out the set of required attributes
  10. // Check if each attribute is there, and satisfies the constraints
  11. log("Performing conformance check!")
  12. return True!