Palladio Project Wizard

From SDQ-Wiki
Jump to: navigation, search

The Palladio wizard provides you with the capability to create an 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.

Palladio-project-wizard.png
.

Confirm and go to the next step. This step is about setting your basic project information such as it's name and location.

Palladio-project-wizard-step1.png

Setting the basic project information and clicking next leads to the second step of the wizard which provides you the chance to select a model of your choice.

Palladio-project-wizard-template-selection.png

When the preffered model has been selected, one can confirm to finish the wizard. This will trigger the process to create the project in the workspace and to write the model files of the selected template into this.


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