2.3.3. Handling Domains

In the Domain view, you can add all your domains and Topics. You can organize them into Domain Libraries.

Selecting the domain tab

To start a new Domain Library, use the add_library_icon button while Domain Libraries is selected or right-click Domain Libraries in the tree:

Adding a domain library

To add a Domain Library, enter the Library Name and the destination file:

Naming a domain library

Then you can add a domain to the new library by using the add_domain_icon button while a Domain Library is selected or by right-clicking the Domain Library:

Adding a domain to a library

A pop-up window will guide you to enter the Domain Name, the Domain ID, and the destination file:

Naming a domain

Once the domain is created, you can register types with the domain and add a new Topic in the Structured view.

To register a new type, select add_participant_icon in the Registered types table; a pop-up will allow you to choose a Type Name and Type Reference:

Adding a registered name

Note

The Type Kind is deprecated and you cannot set this value from the dialog. For legacy configurations, if the imported XML contains this attribute, it will be preserved and show in the dialog.

By default, System Designer will check if the referenced type is defined in the Types view. If you are planning to use Compiled Types, select the User compiled types checkbox and System Designer will not check if the referenced type is defined in the Types view.

Compiled Types

After you click OK, the new registered type will appear in the left tree and in the Registered types table:

Seeing the registered types

To register a new Topic, click add_participant_icon in the Topics table. A pop-up will open:

Defining a Topic

Enter your topic name and select one of the available Registered type names from the drop-down menu.

After you click OK, the new topic will appear in the left tree and in the main panel:

Seeing the defined Topics

Of course, you can also see the XML definition in the XML view:

Seeing the XML for a Topic