This pull request introduces a significant change by renaming the IndividualAgent class to IndependentAgent across the codebase. It also includes some refactoring and updates to the configuration and data collection processes to reflect this change.
A new file agents/independent_agent.py has been created to define the IndependentAgent class, which inherits from BaseAgent and includes specific weights for actions and methods for gathering and consuming resources.
The agents/__init__.py file has been updated to include imports for IndependentAgent and SystemAgent.
Configuration and Data Collection Updates:
Configuration files (config.py, config.yaml) and data collection code (collector.py, database.py) have been updated to reflect the renaming of IndividualAgent to IndependentAgent. [1][2][3][4][5][6][7][8][9][10][11][12]
CLI and Main Script Changes:
The command-line interface (cli.py) and main simulation script (main.py) have been updated to use the new independent_agents parameter instead of individual_agents. [1][2][3]
Test Updates:
Test configurations and scripts have been updated to reflect the renaming of IndividualAgent to IndependentAgent. [1][2]
Overall, these changes ensure that the new IndependentAgent class is properly integrated and that all references to the old IndividualAgent class are updated accordingly.
This pull request introduces a significant change by renaming the
IndividualAgent
class toIndependentAgent
across the codebase. It also includes some refactoring and updates to the configuration and data collection processes to reflect this change.Renaming and Refactoring:
IndividualAgent
have been renamed toIndependentAgent
in various files includingagents/independent_agent.py
,collector.py
,config.py
,config.yaml
,database.py
,environment.py
,gui_config.py
,main.py
,simulation.py
, andtests/test_config.yaml
. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24] [25]New Class and Import Changes:
agents/independent_agent.py
has been created to define theIndependentAgent
class, which inherits fromBaseAgent
and includes specific weights for actions and methods for gathering and consuming resources.agents/__init__.py
file has been updated to include imports forIndependentAgent
andSystemAgent
.Configuration and Data Collection Updates:
config.py
,config.yaml
) and data collection code (collector.py
,database.py
) have been updated to reflect the renaming ofIndividualAgent
toIndependentAgent
. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12]CLI and Main Script Changes:
cli.py
) and main simulation script (main.py
) have been updated to use the newindependent_agents
parameter instead ofindividual_agents
. [1] [2] [3]Test Updates:
IndividualAgent
toIndependentAgent
. [1] [2]Overall, these changes ensure that the new
IndependentAgent
class is properly integrated and that all references to the oldIndividualAgent
class are updated accordingly.