def request_local_resource(self, state, resources, categories): self.info('Requesting resoruce %r category %r', resources, categories) return raage.allocate_resource(self, resources, categories=categories, max_distance=0)
def request_resource(self, state, resources, categories, agent_id=None): self.info("Requesting resoruce %r category %r", resources, categories) return raage.allocate_resource(self, resources, categories=categories, agent_id=agent_id)