-
Notifications
You must be signed in to change notification settings - Fork 774
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add XSD for static discovery (#3404)
* Refs #17824. Add XSD for static discovery Signed-off-by: Ricardo González Moreno <[email protected]> * Refs #17842: Include test Signed-off-by: JesusPoderoso <[email protected]> * Refs #17842: Update versions md Signed-off-by: JesusPoderoso <[email protected]> * Refs #17842: Include sampled blackbox xml in validation test Signed-off-by: JesusPoderoso <[email protected]> * Refs #17842: Update blackbox xml to pass validation Signed-off-by: JesusPoderoso <[email protected]> --------- Signed-off-by: Ricardo González Moreno <[email protected]> Signed-off-by: JesusPoderoso <[email protected]> Co-authored-by: JesusPoderoso <[email protected]>
- Loading branch information
1 parent
1114723
commit 906e0a1
Showing
11 changed files
with
267 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 10 additions & 10 deletions
20
examples/cpp/dds/StaticHelloWorldExample/HelloWorldPublisher_static_disc.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<staticdiscovery> | ||
<participant> | ||
<name>HelloWorldPublisher</name> | ||
<writer> | ||
<userId>1</userId> | ||
<entityId>2</entityId> | ||
<participant> | ||
<name>HelloWorldPublisher</name> | ||
<writer> | ||
<userId>1</userId> | ||
<entityID>2</entityID> | ||
<topicName>HelloWorldTopic</topicName> | ||
<topicDataType>HelloWorld</topicDataType> | ||
<topicKind>NO_KEY</topicKind> | ||
<reliabilityQos>RELIABLE_RELIABILITY_QOS</reliabilityQos> | ||
</writer> | ||
</participant> | ||
<topicDataType>HelloWorld</topicDataType> | ||
<topicKind>NO_KEY</topicKind> | ||
<reliabilityQos>RELIABLE_RELIABILITY_QOS</reliabilityQos> | ||
</writer> | ||
</participant> | ||
</staticdiscovery> |
20 changes: 10 additions & 10 deletions
20
examples/cpp/dds/StaticHelloWorldExample/HelloWorldSubscriber_static_disc.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<staticdiscovery> | ||
<participant> | ||
<name>HelloWorldSubscriber</name> | ||
<reader> | ||
<userId>3</userId> | ||
<entityId>4</entityId> | ||
<participant> | ||
<name>HelloWorldSubscriber</name> | ||
<reader> | ||
<userId>3</userId> | ||
<entityID>4</entityID> | ||
<topicName>HelloWorldTopic</topicName> | ||
<topicDataType>HelloWorld</topicDataType> | ||
<topicKind>NO_KEY</topicKind> | ||
<reliabilityQos>RELIABLE_RELIABILITY_QOS</reliabilityQos> | ||
</reader> | ||
</participant> | ||
<topicDataType>HelloWorld</topicDataType> | ||
<topicKind>NO_KEY</topicKind> | ||
<reliabilityQos>RELIABLE_RELIABILITY_QOS</reliabilityQos> | ||
</reader> | ||
</participant> | ||
</staticdiscovery> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,139 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> | ||
<xs:simpleType name="topicKind"> | ||
<xs:restriction base="xs:string"> | ||
<xs:enumeration value="NO_KEY"/> | ||
<xs:enumeration value="WITH_KEY"/> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
<xs:simpleType name="livelinessKind"> | ||
<xs:restriction base="xs:string"> | ||
<xs:enumeration value="AUTOMATIC_LIVELINESS_QOS"/> | ||
<xs:enumeration value="MANUAL_BY_PARTICIPANT_LIVELINESS_QOS"/> | ||
<xs:enumeration value="MANUAL_BY_TOPIC_LIVELINESS_QOS"/> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
<xs:simpleType name="ownershipKind"> | ||
<xs:restriction base="xs:string"> | ||
<xs:enumeration value="SHARED_OWNERSHIP_QOS"/> | ||
<xs:enumeration value="EXCLUSIVE_OWNERSHIP_QOS"/> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
<xs:complexType name="durationType"> | ||
<xs:sequence minOccurs="1" maxOccurs="unbounded"> | ||
<xs:choice minOccurs="1"> | ||
<xs:element name="sec" minOccurs="0" maxOccurs="1" nillable="true"> | ||
<xs:simpleType> | ||
<xs:union> | ||
<xs:simpleType> | ||
<xs:restriction base="xs:string"> | ||
<xs:minLength value="1"/> | ||
<xs:enumeration value="DURATION_INFINITY"/> | ||
<xs:enumeration value="DURATION_INFINITE_SEC"/> | ||
<!-- <xs:pattern value="\s*(DURATION_INFINITY|DURATION_INFINITE_SEC)\s*"/> --> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
<xs:simpleType> | ||
<xs:restriction base="xs:unsignedInt"/> | ||
</xs:simpleType> | ||
</xs:union> | ||
</xs:simpleType> | ||
</xs:element> | ||
<xs:element name="nanosec" minOccurs="0" maxOccurs="1"> | ||
<xs:simpleType> | ||
<xs:union> | ||
<xs:simpleType> | ||
<xs:restriction base="xs:string"> | ||
<xs:enumeration value="DURATION_INFINITY"/> | ||
<xs:enumeration value="DURATION_INFINITE_NSEC"/> | ||
<!-- <xs:pattern value="\s*(DURATION_INFINITY|DURATION_INFINITE_NSEC)\s*"/> --> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
<xs:simpleType> | ||
<xs:restriction base="xs:unsignedInt"/> | ||
</xs:simpleType> | ||
</xs:union> | ||
</xs:simpleType> | ||
</xs:element> | ||
</xs:choice> | ||
</xs:sequence> | ||
</xs:complexType> | ||
<xs:simpleType name="leaseDurationType"> | ||
<xs:union> | ||
<xs:simpleType> | ||
<xs:restriction base="xs:string"> | ||
<xs:minLength value="1"/> | ||
<xs:enumeration value="INF"/> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
<xs:simpleType> | ||
<xs:restriction base="xs:unsignedInt"/> | ||
</xs:simpleType> | ||
</xs:union> | ||
</xs:simpleType> | ||
<xs:simpleType name="durabilityQosPolicyType"> | ||
<xs:restriction base="xs:string"> | ||
<xs:enumeration value="VOLATILE_DURABILITY_QOS"/> | ||
<xs:enumeration value="TRANSIENT_LOCAL_DURABILITY_QOS"/> | ||
<xs:enumeration value="TRANSIENT_DURABILITY_QOS"/> | ||
<xs:enumeration value="PERSISTENT_DURABILITY_QOS"/> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
<xs:complexType name="livelinessQosProfileType"> | ||
<xs:attribute name="kind" type="livelinessKind"/> | ||
<xs:attribute name="leaseDuration_ms" type="leaseDurationType"/> | ||
</xs:complexType> | ||
<xs:simpleType name ="reliabilityQosPolicyType"> | ||
<xs:restriction base="xs:string"> | ||
<xs:enumeration value="BEST_EFFORT_RELIABILITY_QOS"/> | ||
<xs:enumeration value="RELIABLE_RELIABILITY_QOS"/> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
<xs:complexType name ="ownershipQosPolicyType"> | ||
<xs:attribute name="kind" type="ownershipKind"/> | ||
</xs:complexType> | ||
<xs:complexType name="locatorType"> | ||
<xs:attribute name="address" type="xs:string"/> | ||
<xs:attribute name="port" type="xs:positiveInteger"/> | ||
</xs:complexType> | ||
<xs:complexType name="disablePositiveAcksQosPolicyType"> | ||
<xs:all> | ||
<xs:element name="enabled" type="xs:boolean" /> | ||
<xs:element name="duration" type="durationType" minOccurs="0"/> | ||
</xs:all> | ||
</xs:complexType> | ||
<xs:complexType name="entityProfileType"> | ||
<xs:all> | ||
<xs:element name="userId" type="xs:positiveInteger"/> | ||
<xs:element name="entityID" type="xs:positiveInteger"/> | ||
<xs:element name="expectsInlineQos" type="xs:boolean" minOccurs="0"/> | ||
<xs:element name="topicName" type="xs:string"/> | ||
<xs:element name="topicDataType" type="xs:string"/> | ||
<xs:element name="topicKind" type="topicKind"/> | ||
<xs:element name="partitionQos" type="xs:string" minOccurs="0"/> | ||
<xs:element name="durabilityQos" type="durabilityQosPolicyType" minOccurs="0"/> | ||
<xs:element name="livelinessQos" type="livelinessQosProfileType" minOccurs="0"/> | ||
<xs:element name="reliabilityQos" type="reliabilityQosPolicyType" minOccurs="0"/> | ||
<xs:element name="ownershipQos" type="ownershipQosPolicyType" minOccurs="0"/> | ||
<xs:element name="multicastLocator" type="locatorType" minOccurs="0"/> | ||
<xs:element name="unicastLocator" type="locatorType" minOccurs="0"/> | ||
<xs:element name="disablePositiveAcks" type="disablePositiveAcksQosPolicyType" minOccurs="0"/> | ||
</xs:all> | ||
</xs:complexType> | ||
<xs:complexType name="participantProfileType"> | ||
<xs:sequence> | ||
<xs:element name="name" type="xs:string"/> | ||
<xs:choice maxOccurs="unbounded"> | ||
<xs:element name="reader" type="entityProfileType" minOccurs="0" maxOccurs="unbounded"/> | ||
<xs:element name="writer" type="entityProfileType" minOccurs="0" maxOccurs="unbounded"/> | ||
</xs:choice> | ||
</xs:sequence> | ||
</xs:complexType> | ||
<xs:element name="staticdiscovery"> | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:element name="participant" type="participantProfileType" minOccurs="0" maxOccurs="unbounded"/> | ||
</xs:sequence> | ||
</xs:complexType> | ||
</xs:element> | ||
</xs:schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<staticdiscovery> | ||
<participant> | ||
<name>writer_participant</name> | ||
<writer> | ||
<userId>1</userId> | ||
<entityID>2</entityID> | ||
<expectsInlineQos>true</expectsInlineQos> | ||
<topicName>HelloWorldTopic</topicName> | ||
<topicDataType>HelloWorld</topicDataType> | ||
<topicKind>NO_KEY</topicKind> | ||
<partitionQos>customqosgoeshere</partitionQos> | ||
<durabilityQos>TRANSIENT_LOCAL_DURABILITY_QOS</durabilityQos> | ||
<livelinessQos kind="MANUAL_BY_PARTICIPANT_LIVELINESS_QOS" leaseDuration_ms="INF"/> | ||
<unicastLocator address="231.2.3.1" port="231"/> | ||
<reliabilityQos>RELIABLE_RELIABILITY_QOS</reliabilityQos> | ||
</writer> | ||
</participant> | ||
<participant> | ||
<name>reader_participant</name> | ||
<reader> | ||
<userId>1</userId> | ||
<entityID>2</entityID> | ||
<expectsInlineQos>false</expectsInlineQos> | ||
<topicName>HelloWorldTopic</topicName> | ||
<topicDataType>HelloWorld</topicDataType> | ||
<topicKind>WITH_KEY</topicKind> | ||
<ownershipQos kind="SHARED_OWNERSHIP_QOS"/> | ||
<multicastLocator address="123.1.2.3" port="123"/> | ||
<livelinessQos kind="MANUAL_BY_TOPIC_LIVELINESS_QOS" leaseDuration_ms="2560"/> | ||
<disablePositiveAcks> | ||
<enabled>true</enabled> | ||
<duration> | ||
<sec>DURATION_INFINITY</sec> | ||
</duration> | ||
</disablePositiveAcks> | ||
</reader> | ||
</participant> | ||
</staticdiscovery> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters