Hi all,

a Happy New Year to all of you - I hope, the transition to 2004 has gone
smoothly for everyone!

After all the crazy stuff we did in 2003, I thought: Why not program a
crazy New Year's demo cartridge for AndroMDA? :-)

I recently met someone who could not read UML models and the idea came to
my mind: A computer should be able to transform a UML model into narrative
text that can be read aloud! For example: Image a Company class that has a
1:(1..n) association to a Person class with the role name "employer" on
the Company side and the role name "employees" on the Person side. This
could be read aloud as the following narrative: "A company as employer
knows one or more persons as employees." You can easily put this into a
template:

#foreach ( $assoc in $class.associationLinks )
#set ($adata = $transform.getAssociationData($assoc))
$transform.getEnglishArticleAndNoun($class.name,
$adata.source.multiplicities)
as
$transform.getEnglishNoun($adata.source.roleName,
$adata.source.multiplicities)
$transform.getEnglishVerb("know", $adata.source.multiplicities)
$transform.getEnglishArticleAndNoun($adata.target.type.name,
$adata.target.multiplicities)
as
$transform.getEnglishArticleAndNoun($adata.target.roleName,
$adata.target.multiplicities)
#end

Reading attributes, operations, action states, etc. could be done
similarly. Is there anybody who would like to write such a cartridge? We
could include it in the distribution as an AndroMDA sample.

Cheers...
Matthias

P.S.: That was an example for AndroMDA 2.x, using a custom script helper.
An even more exciting task would be to write the same sample for AndroMDA
3.x using custom metamodel decorators! Volunteers?



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Andromda-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to