OCL question



OCL question

From: Srinivas Nedunuri ^lt;nedunuri@cs.utexas.edu>
Date: Thu 11 Aug 2005 - 23:27:09 BST
Message-ID: <42FBD0BD.4070708@cs.utexas.edu>
hello, is there a convenient way in OCL of specifying that an object is 
identical to another except in the value of some attribute? Suppose I 
have a class C = {x1 : C1, x2:C2} and C1 = {y1:D1, y2:D2} and D1 = 
{z1:E1}. And I have an instance c:C. How can I  say that c':C is 
identical to c  except that c'.x1.y1.z1 = v, where v:E1

cheers
Received on Thu Aug 11 23:27:14 2005