PRESENTATION
-
The PRESENTATION QoS policy controls how changes to instances by publishers are presented to data readers. It affects the relative ordering of these changes and the scope of this ordering. Additionally, this policy introduces the concept of coherent change sets. Here is the IDL for the Presentation QoS:
enum PresentationQosPolicyAccessScopeKind {
INSTANCE_PRESENTATION_QOS,
TOPIC_PRESENTATION_QOS,
GROUP_PRESENTATION_QOS
};
struct PresentationQosPolicy {
PresentationQosPolicyAccessScopeKind access_scope;
boolean coherent_access;
boolean ordered_access;
};
-
The scope of these changes (
access_scope
) specifies the level in which an application may be made aware:
-
INSTANCE_PRESENTATION_QOS
(the default) indicates that changes occur to instances independently. Instance access essentially acts as a no-op with respect to
coherent_access
and
ordered_access
. Setting either of these values to true has no observable affect within the subscribing application.
-
TOPIC_PRESENTATION_QOS
indicates that accepted changes are limited to all instances within the same data reader or data writer.
-
GROUP_PRESENTATION_QOS
indicates that accepted changes are limited to all instances within the same publisher or subscriber.
-
Coherent changes (
coherent_access
) allow one or more changes to an instance be made available to an associated data reader as a single change. If a data reader does not receive the entire set of coherent changes made by a publisher, then none of the changes are made available. The semantics of coherent changes are similar in nature to those found in transactions provided by many relational databases. By default, coherent_access is false.
-
Changes may also be made available to associated data readers in the order sent by the publisher (
ordered_access
). This is similar in nature to the DESTINATION_ORDER QoS policy, however
ordered_access
permits data to be ordered independently of instance ordering. By default,
ordered_access
is false.