Book a Demo

Author Topic: Suggestion: Command to implement interface  (Read 4364 times)

Paul Alexander

  • Guest
Suggestion: Command to implement interface
« 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.

gsparks

  • EA User
  • **
  • Posts: 325
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Suggestion: Command to implement interface
« Reply #1 on: June 27, 2002, 07:11:47 am »
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


timhawkins

  • EA User
  • **
  • Posts: 28
  • Karma: +0/-0
  • If a man says something and a woman is not around to hear him, is he still wrong?
    • View Profile
Re: Suggestion: Command to implement interface
« Reply #2 on: July 04, 2002, 07:05:41 am »
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.

gsparks

  • EA User
  • **
  • Posts: 325
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Suggestion: Command to implement interface
« Reply #3 on: July 04, 2002, 07:36:18 am »
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



phallguy

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Suggestion: Command to implement interface
« Reply #4 on: July 04, 2002, 07:09:30 pm »
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.