Customize Stereotypes

When you launch Astah System Safety, SCDLStereotypes.properties file is generated automatically under %USER_HOME%/.astah/systemsafety directory.

You can modify this SCDLStereotypes.properties file to customize stereotype information and its appearance. A big advantage of this is you can create a customized property file and distribute it within a team to use the same customized stereotypes.

section divider

How to customize the property file

  1. Open %USER_HOME%/.astah/systemsafety/SCDLStereotypes.properties file with text editor.
    Customize Stereotype

  2. There are already pre-defined stereotype information in the file. Please add your customized stereotype information.

    Sample
    Stereotype Customization

section divider

How to define stereotypes

A unique identifier for stereotype

Each line should start with an identifier for the stereotype you are defining.

Stereotype Properties

You can find what properties can be defined and how from the table below.

KeyDescriptionRequired or Optional
name
Enter stereotype name. You cannot use space.
Required
general
Specify a name of its parent stereotype.

Requirement
Enter a name of the parent stereotype name such as "SafetyRequirement". Use "RequirementType" if none.

Requirement Group
Enter a name of the parent stereotype name such as "SafetyMechanism". Use "RequirementGroupType" if none.

Element
Enter a name of the parent stereotype name. Use "ElementType" if none.
Required
keyword
Set an abbreviation that appears on a diagram.




Required
default
Set this as true if you'd like this stereotype to be added automatically every time you create new models (Requirements, RequirementGroups and Elements)
Optional
color
If you want to add a specific color to models when this stereotype is applied, set the RGB color code. (e.g: #FF0000 for red)
Optional
interaction_color
If you want to add a specific color to interaction lines when this stereotype is applied the requirement, set the RGB color code. (e.g: #FF0000 for red)
Optional
order
Specify the order of this stereotype to be displayed.
Optional
abstract
If this is an abstract stereotype that is specified as a parent of generalization relationship, set it as true.
When you set it as true, the stereotype will be invisible and it won't apply to any models.
Optional
section divider

Pre-defined stereotypes

There are pre-defined stereotypes in the SCDLStereotypes.properties file.
You can change the properties of those stereotypes excepts its name and general.
Pre-defined stereotypes