Skip to content

Dev pr1nkos#1

Open
Pr1nkos wants to merge 20 commits intomainfrom
dev_pr1nkos
Open

Dev pr1nkos#1
Pr1nkos wants to merge 20 commits intomainfrom
dev_pr1nkos

Conversation

@Pr1nkos
Copy link
Copy Markdown
Collaborator

@Pr1nkos Pr1nkos commented Aug 7, 2024

new: add logic for Animal move Pr1nkos 4 minutes ago
new: add island initialisationGrid Pr1nkos 5 minutes ago
new: private final Lock lock -> private final Lock lock = new ReentrantLock(); Pr1nkos 5 minutes ago
fix: refactor main to use methods Pr1nkos 6 minutes ago
fix: refactor static to use Config Pr1nkos 7 minutes ago
fix: add organism Herb in yaml Pr1nkos 7 minutes ago

Pr1nkos and others added 20 commits July 13, 2024 14:58
- Added `PopulateIslandService` class to handle initial population of the island.

feat:
- Integrated `PopulateIslandService` in `SimulationService` to populate the island before starting the simulation.
- Introduced `createPrototypes` method in `SimulationService` to create organism prototypes using the updated `OrganismFactory`.
- Added support for reading `new_master_config.yaml` in `OrganismFactory` for dynamic organism creation.
- New 'OrganismFactory' class

patch:
- Modified `SimulationService` to run the `populateIsland` method once before starting the periodic task execution.
- Updated `MapCreator` class to initialize the island and populate it using the updated service.
- Refactored `await` method in `SimulationService` to improve readability and error handling.

deleted:
- Unused files
…from a YAML file using Jackson ObjectMapper. Includes fields for IslandConfig, SimulationConfig, and AnimalParamsConfig, with lazy initialization using a Singleton pattern (ConfigHolder). Implemented updateFromFile() method for reading and updating configuration from new_master_config.yaml, ensuring thread safety and proper resource management with try-with-resources.
Дописан симулятор жизни на острове
Добавлен инициализатор приложения
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants