Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: Paul Alexander on June 26, 2002, 10:59:16 pm
-
I'd like to see a method where you could get EA to automatically create the required operations on a class for a given interface. The idea is that you would select a class, and say "This class implements this interface" and EA would add all the required operations to the class.
-
Hi,
We are sort of halfway there at the moment. The next build of EA has an enhanced 'Set Element Parent' dialog which allows better control of choosing a parent or realized interface from the model. In a future (not too distant I hope) build, this will also offer the option to create the implemented interfaces when the interfaces is selected.
Geoff Sparks
-
Geoff
Would it also be possible to implement a "default" interface specification for all new classes, we have a set of coding standards that require certain elements to exist in all classes (constructor, virtual destructor, copy constructor, comparison operators, assignment operators etc).
That would be good for enforcing these standards for us.
-
Hi,
I guess the simplest answer would be to allow a model to have pattern elements for each element type. So a Class could have a pattern for creating a Java class, a C++ class, a basic class, a Table class & etc. ... the same would go for Use Cases, Components, Nodes ...
You would have to create the base types first - then have the ability to choose to create a class by pattern ... select the pattern type and have EA duplicate the base element for you.
This would also be useful for setting up standards based Use Cases, Requirements etc., which is a popular request
Let me know what you think and Ill add this to the current set of feature requests
Cheers,
Geoff Sparks
-
That sounds like exactly what would work. But...we'd need to be able to create patterns from generic classes rather then a special "patern" class.