dtcc-platform / dtcc-model

MIT License
1 stars 1 forks source link

Make .children and .parents dicts #28

Closed anderslogg closed 8 months ago

anderslogg commented 8 months ago

Should be dict on the type so we can do

city.children[Building]

to get the list of buildings for a city and similar for other objects.

Also add helper functions (properties) like

city.buildings
city.num_buildings

which returns a an empty list of there is nothing in the dictionary.