EnEff-BIM / EnEffBIM-Framework

translating from BIM to BEPS
MIT License
8 stars 0 forks source link

Filling the API with information #85

Closed PRemmen closed 8 years ago

PRemmen commented 8 years ago

Here you can find my proposed "algorithm" to fill the API with acutal information:

https://github.com/EnEff-BIM/EnEffBIM-Framework/tree/issue68_StaticAPIv2/Generic_API/StaticAPI_0.0.1/Doc

Due to changes (see #80, #79) I need to adjust it a little bit.

However, this issue should discuss where we fill the API with information. From my point of view technically it can be done in C++ as well as in Python.

As the main users firstly will be Matthis and me, Python would have some advantages, as we don't need to compile it every time again with SWIG, so we can try out things very fast. The disadvantage maybe, that we have some dublication.

math-boy commented 8 years ago

Let's discuss this when the new API is ready for your access.

PRemmen commented 8 years ago

@math-boy I am trying to revise the algorithm and I have a question. Will there be a function that will return the corresponding SimMolde Element based on the refID?

e.g. returnByRefID(ID7188) ---> Returns for example a boiler?

@PRemmen Not yet. Different elements are saved in different list containers. When we load the corresponding list, we can iterate the list elements to check their refID and find the special element we need. Moreover, I'll try to implement a Python dictionary with the format [refID, Element] for your side when I finished the binding API. Based on this dictionary, we can implement such function easily in Python.

PRemmen commented 8 years ago

@math-boy okay.

PRemmen commented 8 years ago

In the updated Flow Chart the parent relationship between MapThermalZone() and MapComponent() is missing, I think I will create this relationship by parsing a SimThermalZone and instantly all MapComponents and check if "AssignedToGroups" contains refId of SimThermalZone (or corresponding ZoneHvacGroup).