code: public boolean existRunnableNodes(ResourceType type) {
      RunnableIndices r = typeToIndices.get(type);
      return r.existRunnableNodes();
    }
docs: See if there are any runnable nodes of a given type
  @param type the type to look for
  @return true if there are runnable nodes for this type, false otherwise