currently, i'm working on a MMT project and actually i faced some difficulties on the rules and specifications.
i have a class on the Source metamodel which have only one attribute "Name", when the user create an instances from these class i need it to be list of numbers in the corresponding model with commas between them. for example the user create an instance "Mark" and another instance "Steve" ...etc. i need a rule that transform each name to a number "ordered" and print it as a text in the target model. my target model have only one class which is text containing 3 attributes, 2 of them with default values and the last one must contain a list of numbers for each name from the source model.
i was thinking of defining a getID() helper and call it for the target attribute in the main rule but the thing is how to make it as a loop?
i'm a beginner in MMt and ATL rules, your help will be appreciated