E&S CVS Commit: PEAK - First draft of code generation from MOF models! We can now generate

pje at eby-sarna.com pje at eby-sarna.com
Fri Feb 14 19:25:01 EST 2003


Module Name:	PEAK
Committed By:	pje
Date:		Sat Feb 15 00:24:19 UTC 2003

Modified Files:
	PEAK/src/peak/metamodels: MOF131.py
Added Files:
	PEAK/src/peak/metamodels: mof2py.py

Log Message:
First draft of code generation from MOF models!  We can now generate
'peak.model'-style code for packages, classes, enumerations, and features.
Unfortunately, this isn't much more than a proof-of-concept, because there
are some practical limitations on generating multi-package models, and
handling sophisticated data types.  See the docstring for
'peak.metamodels.mof2py' for details on the limitations.  But the good news
is that this code can so far be run against the UML 1.3 and CWM 1.0
metamodels in XMI format, and it generates code that looks like it just
might work.  :)

Also, misc. upgrades and fixes in the MOF131 metamodel module, such as
improved '*Element*Extended()' methods of 'Namespace' objects that now
support handling namespaces merged via contained 'Import' objects.


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.9&r2=1.10
http://cvs.eby-sarna.com/PEAK/src/peak/metamodels/mof2py.py?rev=1.1&content-type=text/vnd.viewcvs-markup

To generate a diff of this commit:
cvs rdiff -r1.9 -r1.10 PEAK/src/peak/metamodels/MOF131.py
cvs rdiff -r0 -r1.1 PEAK/src/peak/metamodels/mof2py.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