Issue 3130: Can MOF Package contain a Constant? (mof-rtf) (mof-rtf) Source: Escape Velocity (Mr. Don Baisley, donbaisley(at)live.com) Nature: Uncategorized Issue Severity: Summary: The MOF 1.3 Specification shows in table 3-4 that a Package can contain a Constant. But constraint [C-43] PackageContainmentRules does not allow a Package to contain a Constant. The table and the constraint need to say the same thing. Resolution: see above Revised Text: In 3.9.3 and A.1, change [C-43] to read: Set{Package, Class, DataType, Association, Exception, Constant, Constraint, Import, Tag} -> includesAll(self.contentTypes) Actions taken: December 16, 1999: received issue December 3, 2001: closed issue Discussion: The OCL for Constraint [C-43] is incorrect. A Package can contain a Constant. The IDL mapping supports this, and the MOF Model already has a Constant declared in a Package (Model::Unbounded). End of Annotations:===== From: "Baisley, Donald E" To: issues@omg.org Subject: Can MOF Package contain a Constant? (mof-rtf) Date: Thu, 16 Dec 1999 13:24:49 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-UIDL: IDWd90)/!!41F!!ZK:!! The MOF 1.3 Specification shows in table 3-4 that a Package can contain a Constant. But constraint [C-43] PackageContainmentRules does not allow a Package to contain a Constant. The table and the constraint need to say the same thing. Don Baisley Unisys X-Mailer: exmh version 2.1.0 09/18/1999 To: "Baisley, Donald E" cc: issues@omg.org, crawley@dstc.edu.au Subject: Re: Can MOF Package contain a Constant? (mof-rtf) In-Reply-To: Message from "Baisley, Donald E" of "Thu, 16 Dec 1999 13:24:49 EST." Mime-Version: 1.0 Date: Tue, 21 Dec 1999 11:34:58 +1000 From: Stephen Crawley Content-Type: text/plain; charset=us-ascii X-UIDL: #iMe9h')e9Fh8!!A0_!! > The MOF 1.3 Specification shows in table 3-4 that a Package can contain a > Constant. But constraint [C-43] PackageContainmentRules does not allow a > Package to contain a Constant. The table and the constraint need to say the > same thing. In my opinion, the OCL is in error. There is no reason why a Package should not contain Constants. Indeed, it would be a nuisance if they couldn't. X-Mailer: exmh version 2.1.0 09/18/1999 To: mof-rtf@omg.org, "Baisley, Donald E" Subject: Re: Can MOF Package contain a Constant? (mof-rtf) (fwd) Mime-Version: 1.0 Date: Tue, 21 Dec 1999 11:42:03 +1000 From: Stephen Crawley Content-Type: text/plain; charset=us-ascii X-UIDL: niWd94G-e9Ph!!!`g'!! > The MOF 1.3 Specification shows in table 3-4 that a Package can contain a > Constant. But constraint [C-43] PackageContainmentRules does not allow a > Package to contain a Constant. The table and the constraint need to say the > same thing. In my opinion, the OCL is in error. There is no reason why a Package should not contain Constants. Indeed, it would be a nuisance if they couldn't. -- Steve X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: mof-rtf@omg.org Subject: Proposed resolution for Issue 3130 Mime-Version: 1.0 Date: Mon, 09 Apr 2001 16:04:13 +1000 From: Stephen Crawley X-Scanned-By: MIMEDefang 1.0 (http://www.roaringpenguin.com/mimedefang/) Content-Type: text/plain; charset=us-ascii X-UIDL: `5#!!$&@e9;R+e9;(md9 > Title: Issue 3130: Can MOF Package contain a Constant? > Summary: The MOF 1.3 Specification shows in table 3-4 that a Package > can contain a Constant. But constraint [C-43] > PackageContainmentRules > does not allow a Package to contain a Constant. The table and the > constraint need to say the same thing. Proposed resolution: The OCL for Constraint [C-43] is incorrect. A Package can contain a Constant. The IDL mapping supports this, and the MOF Model already has a Constant declared in a Package (Model::Unbounded). Proposed revised text: In 3.9.3 and A.1, change [C-43] to read: Set{Package, Class, DataType, Association, Exception, Constant, Constraint, Import, Tag} -> includesAll(self.contentTypes) From: "Iyengar, Sridhar" To: Stephen Crawley , mof-rtf@omg.org Subject: RE: Proposed resolution for Issue 3130 Date: Mon, 9 Apr 2001 12:22:04 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-UIDL: jJ+!!mpL!!;/Wd9R'*!! Looks fine. ------------------------------------------------------------------------ ---- Sridhar Iyengar Unisys Fellow, Director of Advanced Technology 25725, Jeronimo Road Mission Viejo, CA 92691 E-mail : Sridhar.iyengar2@unisys.com Phone : 949-380-5692 Fax : 949-380-6632 ------------------------------------------------------------------------ -------------- > -----Original Message----- > From: Stephen Crawley [mailto:crawley@dstc.edu.au] > Sent: Sunday, April 08, 2001 11:04 PM > To: mof-rtf@omg.org > Subject: Proposed resolution for Issue 3130 > > > > > Title: Issue 3130: Can MOF Package contain a Constant? > > Summary: The MOF 1.3 Specification shows in table 3-4 that > a Package > > can contain a Constant. But constraint [C-43] > PackageContainmentRules > > does not allow a Package to contain a Constant. The table and the > > constraint need to say the same thing. > > Proposed resolution: > > The OCL for Constraint [C-43] is incorrect. A Package can > contain a Constant. > The IDL mapping supports this, and the MOF Model already has > a Constant > declared in a Package (Model::Unbounded). > > Proposed revised text: > > In 3.9.3 and A.1, change [C-43] to read: > > Set{Package, Class, DataType, Association, Exception, Constant, > Constraint, Import, Tag} -> includesAll(self.contentTypes) >