Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info
Summary: this section provides instructions for working with Templates in the Architecture Studio.

Introduction

Architecture Model Templates are in essence Architecture Models /Quality Rule models that can be used as a basis for building new Architecture Models models - i.e. they can facilitate the creation of new Architecture Models or new Quality Rule models:

  • Some templates are supplied with AIP Console (Product templates)
  • Templates can be created manually from existing Architecture Models models or Templates templates (User Defined templates)

Available options

The Templates section is hidden by default. Click the Show Templates button in the Architecture Studio to display it:

Image Modified

When the section is displayed all Templates (product and user-defined) are displayed:

Click to enlarge

Image Modified

Available options:

Use this to search for a specific template. Search will be performed on the title of the template.

Image Modified

Use this button to import an Architecture Model to upload a model created with the end-user application CAST Architecture Checker (i.e. a .CASTArchitect filecastarchitect or .castrule file). Note that the Metric ID assigned to the model in the template must be set to 0 otherwise an error will be displayed when you attempt to import upload the file:

Use this button to display all Templates instead of using the default scroll mechanism:

Default display

Four templates will be displayed in two columns - scroll buttons allow you to scroll through the available templates:

Click to enlarge

Image Modified

View All

All templates are displayed in a two column list:

Click to enlarge

Image Modified


1

Name of the Architecture Model Template:

  • for user defined templates, the name is determined when the Architecture Model is created, but can be changed if required.
  • for product templates, the name will be pre-defined and cannot be changed.
2

Displays the origin of the Architecture Model Template:

ProductTemplate delivered with AIP Console. These templates cannot be edited nor removed.
User-DefinedTemplates created manually from Architecture existing Models or imported from a .CASTArchitectcastarchitect/.castrule file. These templates can be edited and removed.


3

Equivalent file name:

  • for user-defined templates, the file name will be pre-defined and take the form "<Name>.CASTArchitect" or "<Name>.CASTRule"
  • for product templates, the file name will automatically take the form "<Name>.CASTArchitect" or "<Name>.CASTRule"
Info

File names cannot be changed.


4

Displays the date the template was last modified. For product templates, the date the parent Application was created will be displayed.

5

Use this button to create a new Architecture Model using the selected Template. See Create an Architecture a Model from a template.

6

Options button

View

Use this option to view the Architecture Model Template in the editor. The Architecture Model editor will be displayed:

Info

Note that Product templates cannot be saved, therefore they cannot be edited.

Remove

Use this option to remove the Template. Product templates cannot be removed therefore the option will not be available.

Download

Use this option to download the template to an .castarchitect or .castrule file (this file can then be loaded in CAST Architecture Checker).


Create a User-Defined template from

...

a Model

Info
Note that when editing the properties of a user-defined Template, it is not possible to set the metric ID value (it will be read only). When a Model is subsequently created from the template, the Metric ID will become editable.

View an existing Architecture Model, or create a new one, then use the Save Template button  in the Model editor. Then choose Template:

The Architecture Model will be saved as a user-defined template. You will be prompted to name the template:

Anchor
modelfromtemplate
modelfromtemplate
Create

...

a Model from a template

Use this button to create a new Architecture Model using the selected Template and then using the Model editor:

This model can then be attached to a specific version for inclusion in the next analysis - see Application - Config - Architecture. Choose the Name for the new model, then click OK to start the editing process - see Model editor for more information:

...