How luispostigo/a_multi-agent_system_for_dynamic_firefighting_coordination works
Main Components
• Environment/Simulation Grid: Represented by files like ForestModel.py, this is the simulation’s core that manages a grid-based forest environment with fires and obstacles.
• Agents: There are several agent classes in the agents folder:
– Drone Agent (in agents/drone_agent.py): Acts as a task manager, using strategies like BFS clustering and managing global contracts.
– Firefighter Agent (in agents/fireFighter_agent.py): Acts as the execution unit bidding to handle fires.
– Tree Agent (in agents/tree_agent.py): Likely responsible for handling forest objects or obstacles.
• Communication & Coordination Layer: The implemented Contract-Net Protocol (CNP) that defines:
– Task creation (e.g., generating fire contracts from detected clusters)
– Bid evaluation (using criteria like distance and resource availability)
– Assignment and task completion feedback (JSON-based message structure)
• Data & Logging Modules: Though not separate files, the README mentions logging for contracts, debugging, and positional data, which are crucial for traceability and evaluation.
• Supporting Assets & Configurations: assets (e.g. model_demo.png) for visual outputs, main.py to run the simulation, and requirements.txt for dependency management.
Highlighting Relationships and Interactions
• Environment as the central stage where fires occur and agents operate.
• Interaction flow: Drones detect fires → Perform clustering → Create Fire Contracts → Append the contract to a global contract pool.
• Bid submission from Firefighter agents towards the contracts, followed by the assignment of tasks by the Drone agents.
Architectural Patterns & Design Principles
• Decentralized Coordination: Emphasize that each agent makes decisions locally, and that there is no central planner.
• Modular Communication: The simulation separates the protocol logic (communication messages, bid evaluation, etc.) from the basic simulation engine.
• Asynchronous Processing: Capture dynamic feedback and non-blocking interactions between agent communications.
• Real-time Metrics & Logging: Incorporate components that log and track performance (like response time, resource use, etc.), which is vital for analysis and performance visualization.
Technologies, Frameworks, and Libraries
• Python 3.11 as the development language.
• The agent-based simulation library (agentpy, as mentioned in the README) that likely manages the grid and agent interactions.
• Standard Python modules dealing with JSON for messaging in the CNP protocol.