if (customerAlarm_ != null) { if (customerAlarm_.hasExpired()) { customerAlarm_ = null; if (!allConsumersSeen_) { allConsumersSeen_ = true; System.out.println("####### Tired of waiting at supplier: "+ myOrgName_); } else { System.out.println("####### Finished waiting at supplier: "+ myOrgName_); } } else { return false; }
if (customerAlarm_ != null) { if (customerAlarm_.hasExpired()) { customerAlarm_ = null; if (!allConsumersSeen_) { allConsumersSeen_ = true; if (logger.isDebugEnabled()) { logger.debug("####### Tired of waiting at supplier: "); } } else { if (logger.isDebugEnabled()) { logger.debug("####### Finished waiting at supplier: "); }
    public boolean hasSeenAllConsumers() {        if (customerAlarm_ != null) {            if (customerAlarm_.hasExpired()) {                customerAlarm_ = null;                if (!allConsumersSeen_) {                    allConsumersSeen_ = true;                    System.out.println("####### Tired of waiting at supplier: "+                                       myOrgName_);                } else {                    System.out.println("####### Finished waiting at supplier: "+                                       myOrgName_);                }            } else {                return false;   // Still waiting            }        }        return allConsumersSeen_;    }