[Bluej-discuss] Uses arrows in BlueJ class diagrams
Michael E. Caspersen
mec at daimi.au.dk
Fri Jan 19 18:28:36 GMT 2007
> I'd like to second this.
I second this too!
And (at the danger of spoiling the party by tending to featurism)
I'd like to suggest an indication of multiplicity for associations.
This could be achieved by defining a star (*) at the end of an
association to mean that the source class of the association has an
instance variable (which implements iterable) with a type parameter
of the sink class of the association as in the following example.
class B { ... }
class A {
private List<B> bs;
...
}
------- -------
| A | * | B |
| |------>| | (association should be solid ;-)
------- -------
Including such a feature might have undesirable side effects which
I cannot foresee, but it would be very supportive for the way I
teach OOP to novices.
I realize that it is a delicate balance to decide what to include
(and how to include it) and what not to include, but I suggest to
think along these lines.
Enjoy the weekend out there!
-- Michael
More information about the bluej-discuss
mailing list