RE: the constraint {xor}



Date view Thread view Subject view Author view

GERARD Sebastien 166342 (GERARD@ortolan.cea.fr)
Tue, 8 Feb 2000 14:26:52 +0100


Sorry, The class diagram i refer implies three classes A, B and C. Both classes A and B are connected to the class C thanks to associations. A is connected to C with an association whose association end linked to C has a role named rCA and an arity aCA. B is connected to C with an association whose association end linked to C has a role named rCB and an arity aCB. rCA rCB |A|------->|C|<-------|B| aRC aCB yours, Sébastien. -----Message d'origine----- De : Jos Warmer [mailto:J.Warmer@klasse.nl] Envoyé : mardi 8 février 2000 10:52 À : puml-list@cs.york.ac.uk Cc : 'puml-list@cs.york.ac.uk' Objet : Re: the constraint {xor} Sebastian, Could you draw up (in ascii is ok) the class diagram to which your questions refer ? Jos At 10:19 AM 08-02-00 +0100, GERARD Sebastien 166342 wrote: >Hi every body, > >I need some help about two questions on associations semantics. > >1) If one considers the following class model, what does really mean that >both associations are connected through the constraint {xor}? >My interpretation is : >There are no instances of A which share with an instance of B the use of an >instance of C. >Is it right? > > <<...>> > >2) My second question is about the specification of an OCL statement I have >some trouble to write. I would like to express >that the instance a of A and the instance b of B may share the use of the >instance c of C. >I know I can use collaboration diagram to express this feature. But I would >rather specify a constraint within the class diagram. > >Thanks for your help, > >sincerly yours, > >Sébastien Gérard. > > > >To remove yourself from this list please mail puml-list-request@cs.york.ac.uk >with a message containing the word "unsubscribe". > > > > _____________________________________________________ Klasse Objecten tel : +31 (0)35 6037646 Chalonhof 153 fax : +31 (0)35 6037647 3762 CT Soest email : J.Warmer@klasse.nl The Netherlands internet: http://www.klasse.nl To remove yourself from this list please mail puml-list-request@cs.york.ac.uk with a message containing the word "unsubscribe".


Date view Thread view Subject view Author view