TransformationToolContest/ttc2017-smartGrids

String attribute in Listing 1

Closed this issue · 5 comments

Hi,

Listing 1, Line 5 in the case description mentions an attribute called "Consumer.ControlAreaID:String", but there doesn't seem to be a class "Consumer" or an attribute "ControlAreaID" in the target meta-model. I did a full-text search on the complete repository for both, but did not find any matches. Is there a mistake?

Yes, that is a mistake. It should have been EnergyConsumer.ControlAreaID instead of Consumer.ControlAreaID. Unfortunately, the ModelJoin tooling does not throw an exception.

I will upload a new version that includes the missing attribute soon.

Thanks! But are you sure about the correct attribute name being "ControlAreaID"? There doesn't seem to be such an attribute in the EnergyConsumer class.

ModelJoin works by generating both the transformation from the input models to the target model but also the target metamodel based on the view specification. Therefore, a flaw in the ModelJoin specification also may lead (and in fact that happened) to a flaw / missing attribute in the target metamodel.

I see, makes sense. Thanks for clarifying.

Closed with commit 6ac1251