def METHOD_NAME(self, timeout=-1):
    """
    waits worker agents to finish their works.
    """
    # ask all agents to stop
    for agent in self._agents:
        agent.METHOD_NAME()
    self.join(timeout=timeout)