code: public void setAllocatedResource(final AllocatedResource resource) {
  
  		final Iterator<ExecutionVertex> it = this.vertices.iterator();
  		while (it.hasNext()) {
  			final ExecutionVertex vertex = it.next();
  			vertex.setAllocatedResource(resource);
  		}
  	}
docs: Sets the given allocated resource for all vertices included in this pipeline.
  
  @param resource
  the allocated resource to set for all vertices included in this pipeline