/** Returns whether all known children of this node have signaled that they are done. */ boolean isReady() { int directDepsSize = directDeps.size(); Preconditions.checkState(signaledDeps <= directDepsSize, "%s %s", directDepsSize, this); return signaledDeps == directDepsSize; }