public final class WakeupOnBehaviorPost extends WakeupCriterion
| Modifier and Type | Field and Description |
|---|---|
(package private) Behavior |
armingBehavior |
(package private) static int |
COND_IN_BS_LIST |
(package private) int |
post |
(package private) static int |
TOTAL_INDEXED_UNORDER_SET_TYPES |
(package private) Behavior |
triggeringBehavior |
(package private) int |
triggeringPost |
triggeredALL_ELEMENTS, allEnum, behav, conditionMet, id, listIdx, parent, trigEnum, TRIGGERED_ELEMENTS| Constructor and Description |
|---|
WakeupOnBehaviorPost(Behavior behavior,
int postId)
Constructs a new WakeupOnBehaviorPost criterion.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
addBehaviorCondition(BehaviorStructure bs)
This is a callback from BehaviorStructure.
|
Behavior |
getBehavior()
Returns the behavior specified in this object's constructor.
|
int |
getPostId()
Retrieve the WakeupCriterion's specified postId
|
Behavior |
getTriggeringBehavior()
Returns the behavior that triggered this wakeup.
|
int |
getTriggeringPostId()
Returns the postId that caused the behavior to wakeup.
|
(package private) void |
removeBehaviorCondition(BehaviorStructure bs)
This is a callback from BehaviorStructure.
|
(package private) void |
resetBehaviorCondition(BehaviorStructure bs)
Perform task in addBehaviorCondition() that has to be
set every time the condition met.
|
buildTree, cleanTree, hasTriggered, resetTree, setTriggeredallElements, reInsertElapseTimeCond, setConditionMet, triggeredElementsstatic final int COND_IN_BS_LIST
static final int TOTAL_INDEXED_UNORDER_SET_TYPES
Behavior armingBehavior
Behavior triggeringBehavior
int post
int triggeringPost
public WakeupOnBehaviorPost(Behavior behavior, int postId)
behavior - the behavior that must be the source of the post,
if behavior == null, then any behavior posting the postId will cause
the wakeup.postId - the postId that will trigger a wakeup if posted by the
specified behavior, if postId == 0, then any post by the specified
behavior will cause the wakeup.public int getPostId()
public Behavior getBehavior()
public int getTriggeringPostId()
public Behavior getTriggeringBehavior()
void addBehaviorCondition(BehaviorStructure bs)
addBehaviorCondition in class WakeupCriterionvoid removeBehaviorCondition(BehaviorStructure bs)
removeBehaviorCondition in class WakeupCriterionvoid resetBehaviorCondition(BehaviorStructure bs)
resetBehaviorCondition in class WakeupCriterionCopyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.