Allow associations to interfaces #137
Labels
associations
Related to umple associations
Component-SemanticsAndGen
Related to code generators in general and the meaning of Umple models
contribSought
Diffic-Med
A non-trivial problem that may take over a week or may not be obvious how to fix or require analysis
interfaces
keyPortfolio
Priority-VHigh
This is a critical problem that needs immedate solution as it is blocking users
Type-ProjectUG
Particularly suitable and right-sized for undergraduate student projects
ucosp
Suitable for 4th year capstone projects
Originally reported on Google Code with ID 237
Owned by
quinlanjung
It should be possible to define a directed association to an interface. No code would
need to be generated in the interface. All you would be saying would be that the type
of the associated class should be any of the classes that implement the interface.
The following code won't compile, for example
// This is a snippet from the OCSF system see http://www.lloseng,com
interface ChatIF {
void display();
}
class ChatClient {
1 -> 1 ChatIF ui;
}
class ClientConsole {
isA ChatIF;
// Console UI. Code for display would be required.
}
An additional improvement would be to allow normal associations to interfaces. In that
case, the code would have to be generated in each of the implementing subclasses.
Reported by @umple on 2011-10-12 16:52:45
The text was updated successfully, but these errors were encountered: