Palladio Project Wizard

Aus SDQ-Wiki

Usage

The Palladio wizard provides you with the capability to create a new Palladio project. This includes the oppertunity to let the wizard create an initial Palladio model set (repository, allocation, etc.).

To use the Palladio model wizard, simply choose to create a new project in your Eclipse workspace. This will open the new project wizard. In this wizard start typing Palladio and the list of available project type is filtert and you can choose the Palladio project wizard as shown in the figure on the right. Confirm your selection and go to the next step.

Selection of new project wizard for Palladio

The next step is about setting your basic project information such as it's name and location. If you do not want to initalize your new project with one of our examples, you can safely click on the finish button to directly create your project. If you want to take a look at these examples, click the next button instead.

Basic properties of new Palladio project

On the example selection page, it is still possible to just finish the wizard to get an empty project. If you want to initialize your project with an example, check the first checkbox. The dialog will display a short list of commonly used examples. If you would like to see a more extensive list, check the second checkbox. After selecting an example, click finish to create your new project.

Selection of example models to initalize the new project with

Development

Die Informationen auf dieser Seite sind veraltet: The development descriptions refer to an invalid extension point for hooking into the AT templates.


Out of the Box Model Templates

The palladio ui plugin is shipped with a set of default model templates. Each provided with a reasonable name and a description to understand what the template is about.

Custom Model Templates

The new Palladio project wizard provides an eclipse extension point to register additional palladio models to be available by the user.

Step 1: To make use of this extension point, you need to create a new plugin project or open an existing one.

Step 2: A Palladio Model template is a regular Palladio model simply provided to the wizard which copies the files into the newly created project.
Place your model files (and otherfiles such as diagram files as well) in a subdirectory of your project.
Please note: Ecore files contain relative references to other models and the easiest way is to place them all in the same directory. This also needs to be taken into account when configuring the template files in the extension point as described below.

Step 3: As a second third you need to configure your extension. The extension point to use is named

de.uka.ipd.sdq.pcmbench.ui.wizard.template

When the extension has been created, set a resonable name and description. Furthermore, you need to specify the model files. This is done as model_file sub elements of your template definition. A model_file sub element consists of a URI of the source file and a name of the target file to write too. The source URI needs to be a valid Eclipse URI during runtime. For example

platform:/plugin/de.uka.ipd.sdq.pcmbench.ui/templates/minimum_example/default.allocation

The target file name represents a file path relative to the root of the project to create. For example:

default.allocation

An example of a model template extension in the plugin.xml editor:

Palladio-project-wizard-model-extension.png

An example of model template extension in the plugin.xml XML representation:

   <extension
         point="de.uka.ipd.sdq.pcmbench.ui.wizard.template">
      <model_template
            description="Creates a Palladio project containing a minimum example project."
            name="Minimum Example Template">
         <model_file
               target_file="default.allocation"
               template_uri="platform:/plugin/de.uka.ipd.sdq.pcmbench.ui/templates/minimum_example/default.allocation">
         </model_file>
         <model_file
               target_file="default.repository"
               template_uri="platform:/plugin/de.uka.ipd.sdq.pcmbench.ui/templates/minimum_example/default.repository">
         </model_file>
         <model_file
               target_file="default.system"
               template_uri="platform:/plugin/de.uka.ipd.sdq.pcmbench.ui/templates/minimum_example/default.system">
         </model_file>
         <model_file
               target_file="default.usagemodel"
               template_uri="platform:/plugin/de.uka.ipd.sdq.pcmbench.ui/templates/minimum_example/default.usagemodel">
         </model_file>
         <model_file
               target_file="My.resourceenvironment"
               template_uri="platform:/plugin/de.uka.ipd.sdq.pcmbench.ui/templates/minimum_example/My.resourceenvironment">
         </model_file>
         <model_file
               target_file="default.allocation_diagram"
               template_uri="platform:/plugin/de.uka.ipd.sdq.pcmbench.ui/templates/minimum_example/default.allocation_diagram">
         </model_file>
         <model_file
               target_file="default.repository_diagram"
               template_uri="platform:/plugin/de.uka.ipd.sdq.pcmbench.ui/templates/minimum_example/default.repository_diagram">
         </model_file>
         <model_file
               target_file="default.system_diagram"
               template_uri="platform:/plugin/de.uka.ipd.sdq.pcmbench.ui/templates/minimum_example/default.system_diagram">
         </model_file>
         <model_file
               target_file="default.usagemodel_diagram"
               template_uri="platform:/plugin/de.uka.ipd.sdq.pcmbench.ui/templates/minimum_example/default.usagemodel_diagram">
         </model_file>
         <model_file
               target_file="My.resourceenvironment_diagram"
               template_uri="platform:/plugin/de.uka.ipd.sdq.pcmbench.ui/templates/minimum_example/My.resourceenvironment_diagram">
         </model_file>
      </model_template>
	</extension>

Component and interface repository with standard architecture elements

The wizard includes access to standard component and interfaces: standard components.

See also

Palladio Examples