Methods - Internal
Index
EnergyModelsLanguageInterfaces.bio_typeEnergyModelsLanguageInterfaces.cleanup_librariesEnergyModelsLanguageInterfaces.electricity_resourceEnergyModelsLanguageInterfaces.get_python_functionEnergyModelsLanguageInterfaces.getfirstEnergyModelsLanguageInterfaces.moistureEnergyModelsLanguageInterfaces.@dlsym
Utility methods
EnergyModelsLanguageInterfaces.cleanup_libraries — Functioncleanup_libraries()Close all the C module libraries that have been loaded by EnergyModelsLanguageInterfaces.
EnergyModelsLanguageInterfaces.getfirst — Functiongetfirst(f::Function, a::Vector)Return the first element of Vector a satisfying the requirement of Function f.
EnergyModelsLanguageInterfaces.get_python_function — Functionget_python_function(module_name::String, function_name::String)Import the requested function function_name from the python module module_name.
EnergyModelsLanguageInterfaces.moisture — Functionbio_type(p::ResourceBio)Returns the moisture content of a ResourceBio p.
EnergyModelsLanguageInterfaces.bio_type — Functionbio_type(p::ResourceBio)Returns the biomass type of a ResourceBio p.
EnergyModelsLanguageInterfaces.electricity_resource — Functionelectricity_resource(n::BioCHP)Returns the electricity resource of BioCHP node n.
Macros
EnergyModelsLanguageInterfaces.@dlsym — Macro@dlsym(lib, func)This macro uses dlsym to load a function from a shared library specified by lib and func. It caches the result in a Ref to avoid repeated lookups. If the symbol is already loaded, it returns the cached pointer. Otherwise, it loads the symbol, caches it, and then returns the pointer.