All Domain Participants are assigned to the Domain regardless of where they are in the containment hierarchy. Domain Participants should have at least one instance which can be any kind of lock property typed by Domain Participant. During DDS XML generation, all properties of the Block are considered a Domain Participants.
You can create Domain and Domain Participants by using:
This page contains the following topics:
To create a Domain Participant or Domain in the Containment tree
You can use the DDS Domain Table to create a Domain inside a Domain Library. It also helps to assign Topics and Domain Participants to the Domain. The DDS Domain Table named Domain is already created in predefined DDS Package structure. If you want to create a new one, follow the procedure below.
To create an empty DDS Domain Table
To fill in the DDS Domain Table
In the table, specify the following:
- Double-click Name cell and type a domain name.
- Double-click the Domain_id cell and type domain id number.
- Double-click the Topics cell, select and in the Select Elements dialog choose already created topics or use the Creation Mode to create new topics.
Topics referenced by a Domain Participants must be assigned to every Domain that the participant is assigned to. Unassigned Topics lead to validation errors. |
- Double-click the Participants cell, select and in the Select Elements dialog choose already created Domain Participants or use the Creation Mode to create new Domain Participants.
- The Participant Instances column fill in automatically when instances are created in the model. How to create Participant Instances >>
To create a Domain Participant or Domain by refactoring a Block
The difference between instances of Domain Participants and Members of DDS Data types are the following:
- Domain Participant instances: are any Block property typed by Domain Participant. They can be any kid of property: Value Property, Part Property, Reference Property etc.
- Members: DDS Data type Members are used in the data definition section of the meta-model. They allow to define custom, DDS annotated data types. They rely heavily on multiplicity definitions in order to be able to produce a syntactically correct DDS xml output.
To create a Domain Participant instances
To define a instances as an array or sequence, its multiplicity needs to be changed as it follows, where N must be at least 1 and M must be greater than N.
Lower Value | Upper Value | Multiplicity | Type | |
N | N | N | Array | |
0 | -1 | 0 .. * | Boundless Array | |
0 | N-1 | 0 .. N-1 | Sequence | |
N | M | N .. M | Sequence |
To change the instance multiplicity