DDS QoS - ENTITY_FACTORY

https://download.csdn.net/download/eidolon_foot/12568768

20. ENTITY_FACTORY
 
OpenDDS Developer's Guide(OpenDDS Version 3.14)
The ENTITY_FACTORY policy controls whether entities are automatically enabled when they are created. Below is the IDL related to the Entity Factory QoS policy:
ENTITY FACTORY策略控制在创建实体时是否自动启用它们。 以下是与实体工厂QoS策略相关的IDL:
struct EntityFactoryQosPolicy {
boolean autoenable_created_entities;
};
This policy can be applied to entities that serve as factories for other entities and controls whether or not entities created by those factories are automatically enabled upon creation. This policy can be applied to the domain participant factory (as a factory for domain participants), domain participant (as a factory for publishers, subscribers, and topics), publisher (as a factory for data writers), or subscriber (as a factory for data readers). The default value for the autoenable_created_entities member is true , indicating that entities are automatically enabled when they are created. Applications that wish to explicitly enable entities some time after they are created should set the value of the autoenable_created_entities member of this policy to false and apply the policy to the appropriate factory entities. The application must then manually enable the entity by calling the entity’s enable() operation.
该策略可以应用于充当其他实体工厂的实体,并控制在创建时是否自动启用由这些工厂创建的实体。 此策略可以应用于域参与者工厂(作为域参与者的工厂),域参与者(作为发布者、订阅者和主题的工厂),发布者(作为写入器的工厂)或订阅者(作为数据读取器的工厂)。 autoenable_created_entities成员的默认值为true,表示在创建实体时会自动启用它们。 希望在创建实体后的某个时间显式启用实体的应用程序应将此策略的autoenable_created_entities成员的值设置为false,并将该策略应用于适当的工厂实体。 然后,应用程序必须通过调用实体的enable()操作来手动启用实体。
The value of this policy may be changed at any time. Changes to this policy affect only entities created after the change.
该政策的值可以随时更改。 对此策略的更改仅影响更改后创建的实体。
 
Data Distribution Service Version 1.4( formal/2015-04-10)
This policy controls the behavior of the Entity as a factory for other entities.
此策略控制实体作为其他实体的工厂的行为。
This policy concerns only DomainParticipant (as factory for Publisher , Subscriber , and Topic ), Publisher (as factory for DataWriter ), and Subscriber (as factory for DataReader ).
此策略仅涉及DomainParticipant(作为Publisher、Subscriber和Topic的工厂),Publisher(作为DataWriter的工厂)和Subscriber(作为DataReader的工厂)。
This policy is mutable. A change in the policy affects only the entities created after the change; not the previously created entities.
此政策是可变的。 策略的更改仅影响更改后创建的实体。 而不是先前创建的实体。
The setting of autoenable_created_entities to TRUE indicates that the factory create_ operation will automatically invoke the enable operation each time a new Entity is created. Therefore, the Entity returned by create_ will already be enabled. A setting of FALSE indicates that the Entity will not be automatically enabled. The application will need to enable it explicitly by means of the enable operation (see 2.2.2.1.1.7).
将autoenable_created_entities设置为TRUE表示,每次创建新实体时,工厂create_ 操作将自动调用启用操作。 因此,由create_ 返回的实体将已启用。 设置为FALSE表示该实体将不会自动启用。 应用程序将需要通过启用操作显式启用它(请参见2.2.2.1.1.7)。
The default setting of autoenable_created_entities = TRUE means that, by default, it is not necessary to explicitly call enable on newly created entities.
autoenable_created_entities的默认设置= TRUE表示,默认情况下,无需在新创建的实体上显式调用enable。
 

你可能感兴趣的:(DDS)