@@ -75,7 +75,7 @@ def hydrate(
7575 component_view_io : ComponentViewIO ,
7676 container : Container ,
7777 ) -> "ComponentView" :
78- """"""
78+ """Hydrate a new ComponentView instance from its IO. """
7979 return cls (
8080 ** cls .hydrate_arguments (component_view_io ),
8181 container = container ,
@@ -86,6 +86,7 @@ def hydrate(
8686
8787 @property
8888 def name (self ):
89+ """Return the (computed) name of this view."""
8990 return f"{ self .software_system .name } - { self .container .name } - Components"
9091
9192 def add (
@@ -103,6 +104,7 @@ def add(
103104 return self ._add_element (element , add_relationships = True )
104105
105106 def remove (self , element ):
107+ """Remove an individual element from this view."""
106108 self ._remove_element (element )
107109
108110 def add_all_elements (self ) -> None :
@@ -113,14 +115,17 @@ def add_all_elements(self) -> None:
113115 self .add_all_components ()
114116
115117 def add_all_containers (self ) -> None :
118+ """Add all other containers in the software system to this view."""
116119 for container in self .software_system .containers :
117120 self .add (container )
118121
119122 def add_all_components (self ) -> None :
123+ """Add all components in the container to this view."""
120124 for component in self .container .components :
121125 self .add (component )
122126
123127 def add_nearest_neighbours (self , element : Element , _ = None ) -> None :
128+ """Add neighbouring people, software systems, containers and components."""
124129 super ().add_nearest_neighbours (element , SoftwareSystem )
125130 super ().add_nearest_neighbours (element , Person )
126131 super ().add_nearest_neighbours (element , Container )
0 commit comments