def __init__(self, process: Process, worker_id: int, conn: Connection):
     self.process = process
     self.worker_id = worker_id
     self.conn = conn
     self.previous_step: EnvironmentStep = EnvironmentStep.empty(worker_id)
     self.previous_all_action_info: Dict[str, ActionInfo] = {}
     self.waiting = False
Example #2
0
 def __init__(self, env: BaseEnv,
              float_prop_channel: FloatPropertiesChannel):
     super().__init__()
     self.shared_float_properties = float_prop_channel
     self.env = env
     self.previous_step: EnvironmentStep = EnvironmentStep.empty(0)
     self.previous_all_action_info: Dict[str, ActionInfo] = {}
 def __init__(self, env: BaseEnv, env_params: EnvironmentParametersChannel):
     super().__init__()
     self.env_params = env_params
     self.env = env
     self.previous_step: EnvironmentStep = EnvironmentStep.empty(0)
     self.previous_all_action_info: Dict[str, ActionInfo] = {}