Skip to content
Snippets Groups Projects
Commit 7c6e1cc8 authored by Susanna Weber's avatar Susanna Weber
Browse files

all methods are commented

parent 1744912c
Branches
No related tags found
No related merge requests found
......@@ -411,7 +411,6 @@ def buildComponents(interfacesreturn, jsoninterfaces, jsoncomponents, jsonmeasu
return interfacesreturn
def instantiateComponents(typesdict, interfaces, jsoncomponents, instantiatedict, eventsdict, streamsdict, componentlist, headnodeindex, variabledict):
"""
Instantiates all components and collects events, streams and variable names on the side.
......@@ -454,6 +453,13 @@ def instantiateComponents(typesdict, interfaces, jsoncomponents, instantiatedict
def instantiate(typesdict, interfaces, jsoncomponents):
"""
Instantiates the interface root and starts instantiateComponents
:param typesdict: Dict for objecttype node names from the format {uuid : objecttypename}.
:param interfaces: A list of interfaces
:param jsoncomponents: A list of all componentdicts
:return: the values from instantiateComponents
"""
instantiatedict = {}
eventsdict = {}
streamsdict ={}
......@@ -476,6 +482,10 @@ def instantiate(typesdict, interfaces, jsoncomponents):
def main():
"""
Main method that collects everything and starts all writing process.
:return: None
"""
try:
JSON_MODEL = sys.argv[1][:-5]
if not os.path.exists(os.path.join('..', 'soil-opc-ua', f'{JSON_MODEL}.json')):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment