CapableObjects forum



Error: Class ... contains multiple features named ...

Posted By Peter Buchmann 2009-03-05 02:51:50
Add to Favorites0
Author Message
Peter Buchmann
 Posted 2009-03-05 02:51:50
Supreme Being

Supreme Being - (1 018 reputation)Supreme Being - (1 018 reputation)Supreme Being - (1 018 reputation)Supreme Being - (1 018 reputation)Supreme Being - (1 018 reputation)Supreme Being - (1 018 reputation)Supreme Being - (1 018 reputation)Supreme Being - (1 018 reputation)Supreme Being - (1 018 reputation)

Group: Forum Members
Last Active: 2 days ago @ 16:47:33
Posts: 158, Visits: 734
Hi,

I've just tried to use inheritance in a association classes in the following way:

class A is association class of a association and class A' inherits from A. Source code seems to be OK but when I validate the model I get following error messages:

Error: Class A' contains multiple features named feature1
Error: Class A' contains multiple features named feature2

where feature1 and feature2 are the end1 and end2 role names of the association. It seems that inheritance can not be used in accociation classes in the latest ECO4 release (4.0.0.3583).

Jan Norden
 Posted 2009-03-05 08:21:18
Supreme Being

Supreme Being - (178 reputation)Supreme Being - (178 reputation)Supreme Being - (178 reputation)Supreme Being - (178 reputation)Supreme Being - (178 reputation)Supreme Being - (178 reputation)Supreme Being - (178 reputation)Supreme Being - (178 reputation)Supreme Being - (178 reputation)

Group: Forum Members
Last Active: 2009-12-11 18:29:47
Posts: 27, Visits: 281
178
An association class can have a superclasses (which is not itself an associationclass) but not subclasses.

Since the existance of a linkobject is defined as being a link in an association, instances of the subclass would end up being a link in two different associations, which does not make much sense.

Peter Buchmann
 Posted 2009-03-05 09:47:20
Supreme Being

Supreme Being - (1 018 reputation)Supreme Being - (1 018 reputation)Supreme Being - (1 018 reputation)Supreme Being - (1 018 reputation)Supreme Being - (1 018 reputation)Supreme Being - (1 018 reputation)Supreme Being - (1 018 reputation)Supreme Being - (1 018 reputation)Supreme Being - (1 018 reputation)

Group: Forum Members
Last Active: 2 days ago @ 16:47:33
Posts: 158, Visits: 734
Hi Jan,

after a little bit thinking about the problem I've already got to the point that inheriting from a association class would not make much sense. It was only the strange error message which made me think that there could be a bug. Something like:

You can not inherit a class from a association class

would have been a bit clearer.

Peter


Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Back To Top