ECore Cardinality & Optionality Issue [message #657269] |
Wed, 02 March 2011 09:51 |
Dharam Messages: 18 Registered: December 2010 |
Junior Member |
|
|
Hello,
Relation :- Ident_ST "Has_type" Datatype
Cardinality :- (M : 1)
Optionality :- (M : M)
Relation : Datatype "Is_of_Identifier" Ident_ST
Cardinality :- (1 : M)
Optionality :- (M : O)
For 2nd relation, structtype can't have any identifier. So jst want
to create ((structtype) is Datatype). But it gives me error on validating at this step.
Is_of_Identifier must have some value.
Here Has_type & Is_of_Identifier is EReference & left as well right parts are Classes. For both references containment & container attributes are false. I also don't want to set Opposite.
Conceptually above both are different associations.
[Updated on: Wed, 02 March 2011 09:52] Report message to a moderator
|
|
|
Re: ECore Cardinality & Optionality Issue [message #657390 is a reply to message #657269] |
Wed, 02 March 2011 15:38 |
Ed Merks Messages: 33139 Registered: July 2009 |
Senior Member |
|
|
Dharam,
Comments below.
Dharam wrote:
> Hello,
>
> Relation :- Ident_ST "Has_type" Datatype
> Cardinality :- (M : 1)
> Optionality :- (M : M)
>
>
> Relation : Datatype "Is_of_Identifier" Ident_ST
> Cardinality :- (1 : M)
> Optionality :- (M : O)
What does this notation correspond to in Ecore? Upper and lower bound I
suppose, but those have only a single value each.
>
>
> For 2nd relation, structtype can't have any identifier.
What's structtype?
> So jst want
> to create structtype(Datatype). But it gives me error on validating at
> this step. Is_of_Identifier must have some value.
>
>
> Here Has_type & Is_of_Identifier is EReference & left as well right
> parts are Classes. For both references containment & container
> attributes are false. I also don't want to set Opposite.
> Conceptually above both are different associations.
Can you describe what you have in Ecore so I'm not left wondering what
your notation maps to?
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.02646 seconds