Пример #1
0
 def on_message_received(self, msg: IncomingMessage) -> None:
     """
     Is called by the environment to the side channel. Can be called
     multiple times per step if multiple messages are meant for that
     SideChannel.
     """
     self._received_messages.append(msg.get_raw_bytes())
Пример #2
0
 def on_message_received(self, msg: IncomingMessage) -> None:
     """
     Is called by the environment to the side channel. Can be called
     multiple times per step if multiple messages are meant for that
     SideChannel.
     """
     k, v = self.deserialize_int_list_prop(msg.get_raw_bytes())
     self._int_list_properties[k] = v