COMPAS Assembly Data-Structure
- Why
- represent hierarchical relationships between elements
- What
- a flat collection of elements
- abstract linkage or connection between elements
- a tree structure to represent the hierarchy
- How
- model is structured as a tree where the root is treated as a special node:
- Model:
- _elements = OrderedDict() # a flat collection of elements - dict{GUID, Element}
- _hierarchy = ModelTree(self, name) # hierarchical relationships between elements
- _interactions = Graph(name=name) # abstract linkage or connection between elements
- Model:
- model is structured as a tree where the root is treated as a special node: