This time I tried to modify the environment file to have an Environment class as the aggregation root, which means all regions are generated and the hospital becomes a branch building. The advantage of this I think is we can build various buildings through the environment class and the case is encapsulated and clear.
Next time, I will combine my twice upload, to realize the behavior of going to the hospital when people are sick and waiting for treatment, if everything goes well, I can even design other behaviors based on this, such as stratifying by age, with the part of the population older than 24 choosing to go to a more intensive place (work etc)
Good afternoon!
This time I tried to modify the environment file to have an Environment class as the aggregation root, which means all regions are generated and the hospital becomes a branch building. The advantage of this I think is we can build various buildings through the environment class and the case is encapsulated and clear.
Next time, I will combine my twice upload, to realize the behavior of going to the hospital when people are sick and waiting for treatment, if everything goes well, I can even design other behaviors based on this, such as stratifying by age, with the part of the population older than 24 choosing to go to a more intensive place (work etc)