Closed AtiyahElsheikh closed 2 years ago
The important thing to keep in mind, though, is that the agent building blocks need to be able to function independently. setDead! for example is currently delegated to BasicInfo which of course knows nothing about relationships etc. The way to go would then be to implement setDead!(::Person) which does all the things you mention and in turn calls setDead!(::BasicInfo) (setDeat would then have to be taken out of the delegation list in person.jl).
Some pieces of code is subject to simplification.
For instance:
the last two statements can be moved to the function
setDead!()
Also, the Person constructor can be improved so that the client does not take care setting up kinship relationship. My current, Person inner cor looks as
instead of
This also simplifies the implementation of
DoBirths
p.s. : will also modify the
?
toif