It makes sense. Go for it.
Doru
On Tue, Jul 2, 2013 at 5:43 PM, Anne Etien <anne.etien(a)univ-lille1.fr>wrote;wrote:
Hi,
The isPackage method is implemented only in FAMIXNamedEntity (and
obviously in FAMIXPackage).
The isClass method is implemented only in FAMIXSourcedEntity (and
obviously in FAMIXClass).
The isAttribute method is implemented only in FAMIXStructuralEntity (and
obviously in FAMIXAttribute).
The isMethod method is not implemented…
Why not harmonizing this and defining all these methods in FAMIXEntity?
In fact, I am working with Nicolas Anquetil on the diff of models. I would
like to create an Orion action for each change. Thus, if a class is added
between version n and version n+1, I would like to instantiate an AddClass
operator. And so on for each change. So I need to know the type of the
FAMIXEntity on which the change occurred. Using these methods would be
tidier than using isKindOf: method.
Please let me know if such implementations make sense for you or not.
Anne
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
www.tudorgirba.com
"Every thing has its own flow"