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 #602579] Sat, 24 July 2010 09:02
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
Previous Topic:MARTE on Papyrus Helios
Next Topic:Three-way Association Class with multiplicity display problems
Goto Forum:
  


Current Time: Tue Apr 16 18:17:08 GMT 2024

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

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

Back to the top