![]() |
OpenSplice Java 5 DCPS
v6.x
OpenSplice Java 5 OpenSplice Data Distribution Service Data-Centric Publish-Subscribe API
|
A StatusCondition object is an immutable object that specifies Condition that is associated with each org.omg.dds.core.Entity. More...
Public Member Functions | |
Set< Class<? extends Status > > | getEnabledStatuses () |
This operation retrieves the list of communication statuses that are taken into account to determine the triggerValue of the StatusCondition. More... | |
ServiceEnvironment | getEnvironment () |
ENTITY | getParent () |
boolean | getTriggerValue () |
void | setEnabledStatuses (Class<? extends Status >... statuses) |
This operation accepts a variable number of statuses that are encapsulated in a new StatusCondition object. More... | |
void | setEnabledStatuses (Collection< Class<? extends Status >> statuses) |
This operation accepts a collection of statuses that are encapsulated in a new StatusCondition object. More... | |
A StatusCondition object is an immutable object that specifies Condition that is associated with each org.omg.dds.core.Entity.
The triggerValue of the StatusCondition depends on the communication status of that entity (e.g., arrival of data, loss of information, etc.), "filtered" by the set of enabledStatuses on the StatusCondition.
The triggerValue of a StatusCondition is the Boolean OR of the ChangedStatusFlag of all the communication statuses to which it is sensitive. That is, triggerValue == false only if all the values of the ChangedStatusFlags are false.
The sensitivity of the StatusCondition to a particular communication status is controlled by the list of enabledStatuses set on the condition by means of setEnabledStatuses(Collection).
Valid statuses are:
<ENTITY> | The type of the entity with which this condition is associated. |
Definition at line 63 of file StatusCondition.java.
Set<Class<? extends Status> > org.omg.dds.core.StatusCondition< ENTITY extends Entity<?, ?>.getEnabledStatuses | ( | ) |
This operation retrieves the list of communication statuses that are taken into account to determine the triggerValue of the StatusCondition.
This operation returns the statuses that were explicitly set on the last call to setEnabledStatuses(Collection) or, if it was never called, the default list.
Implemented in org.opensplice.dds.core.StatusConditionImpl< T extends Entity<?, ?>.
|
inherited |
Implemented in org.omg.dds.core.ServiceEnvironment, org.opensplice.dds.sub.ReflectionDataReader< TYPE, OUT_TYPE >, org.opensplice.dds.core.ModifiableTimeImpl, org.opensplice.dds.pub.ReflectionDataWriter< TYPE >, org.opensplice.dds.core.DurationImpl, org.opensplice.dds.topic.ContentFilteredTopicImpl< TYPE >, org.opensplice.dds.sub.ReadConditionImpl< TYPE >, org.opensplice.dds.core.EntityQosImpl< T extends QosPolicy >, org.opensplice.dds.type.TypeSupportImpl< TYPE >, org.opensplice.dds.topic.PublicationBuiltinTopicDataImpl, org.opensplice.dds.topic.SubscriptionBuiltinTopicDataImpl, org.opensplice.dds.topic.TopicBuiltinTopicDataImpl, org.opensplice.dds.domain.DomainParticipantFactoryImpl, org.opensplice.dds.core.QosProviderImpl, org.opensplice.dds.core.status.OfferedIncompatibleQosStatusImpl, org.opensplice.dds.core.status.RequestedIncompatibleQosStatusImpl, org.opensplice.dds.core.InstanceHandleImpl, org.opensplice.dds.core.StatusConditionImpl< T extends Entity<?, ?>, org.opensplice.dds.core.status.LivelinessChangedStatusImpl, org.opensplice.dds.core.status.PublicationMatchedStatusImpl, org.opensplice.dds.core.status.SubscriptionMatchedStatusImpl, org.opensplice.dds.sub.SampleImpl< TYPE >, org.opensplice.dds.core.policy.ShareImpl, org.opensplice.dds.core.status.OfferedDeadlineMissedStatusImpl, org.opensplice.dds.core.status.SampleRejectedStatusImpl, org.opensplice.dds.core.WaitSetImpl, org.opensplice.dds.topic.ParticipantBuiltinTopicDataImpl, org.opensplice.dds.core.status.RequestedDeadlineMissedStatusImpl, org.opensplice.dds.topic.BuiltinTopicKeyImpl, org.opensplice.dds.core.GuardConditionImpl, org.opensplice.dds.core.event.AllDataDisposedEventImpl< TYPE >, org.opensplice.dds.core.policy.QosPolicyCountImpl, org.opensplice.dds.core.status.InconsistentTopicStatusImpl, org.opensplice.dds.core.status.LivelinessLostStatusImpl, org.opensplice.dds.core.status.SampleLostStatusImpl, org.opensplice.dds.core.policy.QosPolicyImpl, org.opensplice.dds.core.status.AllDataDisposedStatusImpl, org.opensplice.dds.core.IllegalArgumentExceptionImpl, org.opensplice.dds.core.InconsistentPolicyExceptionImpl, org.opensplice.dds.core.policy.PolicyFactoryImpl, org.opensplice.dds.core.policy.TypeConsistencyEnforcementImpl, org.opensplice.dds.core.PreconditionNotMetExceptionImpl, org.opensplice.dds.core.AlreadyClosedExceptionImpl, org.opensplice.dds.core.IllegalOperationExceptionImpl, org.opensplice.dds.core.ImmutablePolicyExceptionImpl, org.opensplice.dds.core.NotEnabledExceptionImpl, org.opensplice.dds.core.OutOfResourcesExceptionImpl, org.opensplice.dds.core.DDSExceptionImpl, org.opensplice.dds.core.status.DataAvailableStatusImpl, and org.opensplice.dds.core.status.DataOnReadersStatusImpl.
ENTITY org.omg.dds.core.StatusCondition< ENTITY extends Entity<?, ?>.getParent | ( | ) |
Implemented in org.opensplice.dds.core.StatusConditionImpl< T extends Entity<?, ?>.
|
inherited |
Implemented in org.opensplice.dds.sub.ReadConditionImpl< TYPE >, org.opensplice.dds.core.StatusConditionImpl< T extends Entity<?, ?>, and org.opensplice.dds.core.GuardConditionImpl.
void org.omg.dds.core.StatusCondition< ENTITY extends Entity<?, ?>.setEnabledStatuses | ( | Class<? extends Status >... | statuses | ) |
This operation accepts a variable number of statuses that are encapsulated in a new StatusCondition object.
If this function is not invoked, the default list of enabled statuses includes all the statuses.
statuses | For which status changes the condition should trigger. An empty parameter list signifies all status changes. |
Implemented in org.opensplice.dds.core.StatusConditionImpl< T extends Entity<?, ?>.
void org.omg.dds.core.StatusCondition< ENTITY extends Entity<?, ?>.setEnabledStatuses | ( | Collection< Class<? extends Status >> | statuses | ) |
This operation accepts a collection of statuses that are encapsulated in a new StatusCondition object.
If this function is not invoked, the default list of enabled statuses includes all the statuses.
statuses | For which status changes the condition should trigger. A null collection signifies all status changes. |
Implemented in org.opensplice.dds.core.StatusConditionImpl< T extends Entity<?, ?>.