atlanmod / Mogwai

Automatic translation from OCL to Gremlin
10 stars 6 forks source link

AllInstances(Class) translation does not take into account subclasses of Class #14

Open gdaniel opened 8 years ago

gdaniel commented 8 years ago

AllInstances(Class) operation is mapped to metaClassNode.inE("kyanosInstanceOf").outV, and does not take into account Class subclasses.

This could be fixed by reusing the logic in the oclIsKindOf(Class) translation.