E&S CVS Commit: PEAK - Added support for 'mdl_isAbstract' and 'isComposite' flags: abstract

pje at eby-sarna.com pje at eby-sarna.com
Tue Feb 4 13:57:00 EST 2003


Module Name:	PEAK
Committed By:	pje
Date:		Tue Feb  4 18:56:57 UTC 2003

Modified Files:
	PEAK/src/peak/metamodels: MOF131.py
	PEAK/src/peak/metamodels/uml: MetaModel.py
	PEAK/src/peak/model: structural.py
	PEAK/src/peak/model/tests: __init__.py

Log Message:
Added support for 'mdl_isAbstract' and 'isComposite' flags: abstract
classes declared with 'mdl_isAbstract = True' will not allow instances to
be created, but their subclasses will, as long as the subclass doesn't
also set 'mdl_isAbstract = True'.  Features that set 'isComposite = True'
will be included in their classes' 'mdl_compositeFeatures' tuple.

Also revised the UML metamodel to reflect these new capabilities (although
the majority of the 'isComposite' features are as yet unmarked) and added
tests for all new functionality in this commit.


To view diffs of this commit, you can use the following URL(s):
http://cvs.eby-sarna.com/PEAK/src/peak/metamodels/MOF131.py.diff?r1=1.2&r2=1.3
http://cvs.eby-sarna.com/PEAK/src/peak/metamodels/uml/MetaModel.py.diff?r1=1.15&r2=1.16
http://cvs.eby-sarna.com/PEAK/src/peak/model/structural.py.diff?r1=1.8&r2=1.9
http://cvs.eby-sarna.com/PEAK/src/peak/model/tests/__init__.py.diff?r1=1.3&r2=1.4

To generate a diff of this commit:
cvs rdiff -r1.2 -r1.3 PEAK/src/peak/metamodels/MOF131.py
cvs rdiff -r1.15 -r1.16 PEAK/src/peak/metamodels/uml/MetaModel.py
cvs rdiff -r1.8 -r1.9 PEAK/src/peak/model/structural.py
cvs rdiff -r1.3 -r1.4 PEAK/src/peak/model/tests/__init__.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




More information about the source-changes mailing list