ENTITY
- The type of the entity with which this condition is
associated.public interface StatusCondition<ENTITY extends Entity<?,?>> extends Condition
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)
.Modifier and Type | Method and Description |
---|---|
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.
|
ENTITY |
getParent() |
void |
setEnabledStatuses(Collection<Class<? extends Status>> statuses)
This operation defines the list of communication statuses that are
taken into account to determine the triggerValue of the
StatusCondition.
|
getTriggerValue
getEnvironment
Set<Class<? extends Status>> getEnabledStatuses()
setEnabledStatuses(Collection)
or, if it was never called,
the default list.setEnabledStatuses(Collection)
void setEnabledStatuses(Collection<Class<? extends Status>> statuses)
WaitSet
objects behavior depend on the changes of the
triggerValue of their attached conditions. Therefore, any WaitSet to
which the StatusCondition is attached is potentially affected by this
operation.
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.getEnabledStatuses()
ENTITY getParent()
Copyright © 2014. All rights reserved.