void reInsertElapseTimeCond() { super.reInsertElapseTimeCond(); for (int i = 0; i < conditions.length; i++) { if (conditions[i] != null) { conditions[i].reInsertElapseTimeCond(); } } }
/** * This goes through the AndOr tree to remove the various criterion from the BehaviorStructure. */ void resetTree() { super.resetTree(); for (int i = 0; i < conditions.length; i++) { if (conditions[i] != null) { conditions[i].resetTree(); } } }
/** This gets called when this condition is added to the AndOr tree. */ void buildTree(WakeupCondition parent, int id, BehaviorRetained b) { super.buildTree(parent, id, b); for (int i = 0; i < conditions.length; i++) { if (conditions[i] != null) { conditions[i].buildTree(this, i, b); } } }
/** This sets the bit for the given child, then checks if the full condition is met */ void setConditionMet(int id, Boolean checkSchedulingRegion) { conditionsMet[id] = true; for (int i = 0; i < this.conditionsMet.length; i++) { if (!conditionsMet[i]) { return; } } if (parent == null) { super.setConditionMet(this.id, checkSchedulingRegion); } else { parent.setConditionMet(this.id, checkSchedulingRegion); } }