adf_core_python.implement.module.communication package#
Submodules#
adf_core_python.implement.module.communication.default_channel_subscriber module#
- class adf_core_python.implement.module.communication.default_channel_subscriber.DefaultChannelSubscriber#
ベースクラス:
ChannelSubscriber
- static get_channel_number(agent_type: Entity, channel_index: int, number_of_channels: int) int #
- subscribe(agent_info: AgentInfo, world_info: WorldInfo, scenario_info: ScenarioInfo) list[int] #
Subscribe to the channel.
- パラメータ:
agent_info (AgentInfo) -- The agent info.
world_info (WorldInfo) -- The world info.
scenario_info (ScenarioInfo) -- The scenario info.
- 戻り値:
The list of subscribed channels.
- 戻り値の型:
list[int]
adf_core_python.implement.module.communication.default_message_coordinator module#
- class adf_core_python.implement.module.communication.default_message_coordinator.DefaultMessageCoordinator#
ベースクラス:
MessageCoordinator
- coordinate(agent_info: AgentInfo, world_info: WorldInfo, scenario_info: ScenarioInfo, message_manager: MessageManager, send_message_list: list[CommunicationMessage], channel_send_message_list: list[list[CommunicationMessage]]) None #
- get_channels_by_agent_type(agent_type: Entity, agent_info: AgentInfo, world_info: WorldInfo, scenario_info: ScenarioInfo) list[int] #
- set_send_messages(scenario_info: ScenarioInfo, agent_type: Entity, agent_info: AgentInfo, world_info: WorldInfo, messages: list[StandardMessage], channel_send_message_list: list[list[CommunicationMessage]], channel_size: list[int]) None #