Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Three-way Association Class with multiplicity display problems
Three-way Association Class with multiplicity display problems [message #549091] Sat, 24 July 2010 09:02 Go to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

I'm trying to create a trivial example to demonstrate OCL navigation
inadequacies and after a couple of stabs, I was pleasantly surprised
that the 0.7.0 release allows me to draw what I wanted looking just
about right.

However I found a few oddities, some of which may be my stupidity and
some may be bugs/roundtuits.

The diagram I am trying to draw is:

class Person;

association class Family {
property father : Person[*];
property mother : Person[*];
property child : Person[*];
invariant ChildHasFather: child->notEmpty() implies father->notEmpty();
invariant ChildHasMother: child->notEmpty() implies mother->notEmpty();
}

[Yes, the multiplicities are (probably) correct; consider divorce and
remarriage. Each instance of an association has at most one of each end.
A Person as a child must have a mother and father. A Person as a
father/mother does not have to have a child.]

While practicising association branches, I drew non-recursive branches.

It seems that I cannot reconnect the association-end of a branch to
another class.

Once I delete the association-branch on the diagram, the outline does
not show me the branch so that I can delete it in the model too.

I cannot get the multiplicity of an association-branch to show on the
diagram.

I cannot hide the owner type accompanying the association end role name.

After a few attempts at hides and filters, suddenly all three
association-end role names acquired the same name, but editing that
one in the properties view, changed just one display. Changing one of
the other didn't make it acquire its new name.

Regards

Ed Willink
Re: Three-way Association Class with multiplicity display problems [message #549185 is a reply to message #549091] Sun, 25 July 2010 23:08 Go to previous message
Remi Schnekenburger is currently offline Remi SchnekenburgerFriend
Messages: 169
Registered: July 2009
Location: Palaiseau, France
Senior Member
Hi Ed,

N-ary links in UML are rather tough things to implement using GMF technologies..

From your feedback, this would be interesting to enter bugs in the Papyrus bugzilla. Could you handle this action? This would let us taking in charge the correction of these issues, and would ease fixes trace.

Thanks for the attention you pay to the tool!
Cheers,
Rémi


Remi Schnekenburger

Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
Re: Three-way Association Class with multiplicity display problems [message #602605 is a reply to message #549091] Sun, 25 July 2010 23:08 Go to previous message
Remi Schnekenburger is currently offline Remi SchnekenburgerFriend
Messages: 169
Registered: July 2009
Location: Palaiseau, France
Senior Member
Hi Ed,

N-ary links in UML are rather tough things to implement using GMF technologies..

From your feedback, this would be interesting to enter bugs in the Papyrus bugzilla. Could you handle this action? This would let us taking in charge the correction of these issues, and would ease fixes trace.

Thanks for the attention you pay to the tool!
Cheers,
Rémi
--
http://www.eclipse.org/papyrus


Remi Schnekenburger

Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
Previous Topic:Three-way Association Class with multiplicity display problems
Next Topic:Missing Java Profile
Goto Forum:
  


Current Time: Tue Apr 23 17:56:59 GMT 2024

Powered by FUDForum. Page generated in 0.02930 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top