Open
Conversation
- 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.
Дописан симулятор жизни на острове Добавлен инициализатор приложения
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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