Chapter 4 Extending your Models with Profiles
You are going to generate a textual description of the messages existing in the communication diagram. The description should provide for each diagram in the model, the name of the message sender, the name of the message and the name of the receiver.
You generate this description using templates and generated files, because by default PowerDesigner does not provide such a feature. Templates and generated files use the PowerDesigner Generation Template Language (GTL). Generated files evaluate templates defined on metaclasses and output the evaluation result in files.
For more information on GTL, see the Customizing Generation with GTL chapter.
To generate a textual description of the communication diagram message, you have to define templates on the following metaclasses:
For more information on the PowerDesigner metaclasses, see the Resource Files and the Public Metamodel chapter.
The generated file is defined on metaclass BasePackage in order to scan the entire model, that is to say the model itself and the packages it may contain. This is to make sure that all messages in the model and its packages are described in the generated file. There will be one generated file since metaclass BasePackage has only one instance.
Copyright (C) 2008. Sybase Inc. All rights reserved. |