@@ -43,9 +43,6 @@ class ViewSetIO(BaseModel):
4343 Define a set of views onto a software architecture model.
4444
4545 Views include static views, dynamic views and deployment views.
46-
47- Attributes:
48-
4946 """
5047
5148 system_landscape_views : List [SystemLandscapeViewIO ] = Field (
@@ -69,9 +66,6 @@ class ViewSet(ModelRefMixin, AbstractBase):
6966 Define a set of views onto a software architecture model.
7067
7168 Views include static views, dynamic views and deployment views.
72-
73- Attributes:
74-
7569 """
7670
7771 def __init__ (
@@ -101,6 +95,7 @@ def __init__(
10195
10296 @classmethod
10397 def hydrate (cls , views : ViewSetIO , model : "Model" ) -> "ViewSet" :
98+ """Hydrate a new ViewSet instance from its IO."""
10499 system_landscape_views = []
105100 for view_io in views .system_landscape_views :
106101 view = SystemLandscapeView .hydrate (view_io , model = model )
@@ -156,7 +151,15 @@ def _hydrate_view(cls, view: View, model: "Model") -> None:
156151 def create_system_landscape_view (
157152 self , system_landscape_view : Optional [SystemLandscapeView ] = None , ** kwargs
158153 ) -> SystemLandscapeView :
159- # TODO:
154+ """
155+ Add a new SystemLandscapeView to the ViewSet.
156+
157+ Args:
158+ system_landscape_view (SystemLandscapeView, optional): Either provide a
159+ `SystemLandscapeView` instance or
160+ **kwargs: Provide keyword arguments for instantiating a
161+ `SystemLandscapeView` (recommended).
162+ """ # TODO:
160163 # assertThatTheViewKeyIsSpecifiedAndUnique(key);
161164 if system_landscape_view is None :
162165 system_landscape_view = SystemLandscapeView (
@@ -169,6 +172,15 @@ def create_system_landscape_view(
169172 def create_system_context_view (
170173 self , system_context_view : Optional [SystemContextView ] = None , ** kwargs
171174 ) -> SystemContextView :
175+ """
176+ Add a new SystemContextView to the ViewSet.
177+
178+ Args:
179+ system_context_view (SystemContextView, optional): Either provide a
180+ `SystemContextView` instance or
181+ **kwargs: Provide keyword arguments for instantiating a `SystemContextView`
182+ (recommended).
183+ """
172184 # TODO:
173185 # assertThatTheSoftwareSystemIsNotNull(softwareSystem);
174186 # assertThatTheViewKeyIsSpecifiedAndUnique(key);
@@ -181,6 +193,15 @@ def create_system_context_view(
181193 def create_container_view (
182194 self , container_view : Optional [ContainerView ] = None , ** kwargs
183195 ) -> ContainerView :
196+ """
197+ Add a new ContainerView to the ViewSet.
198+
199+ Args:
200+ container_view (ContainerView, optional): Either provide a
201+ `ContainerView` instance or
202+ **kwargs: Provide keyword arguments for instantiating a `ContainerView`
203+ (recommended).
204+ """
184205 # TODO:
185206 # assertThatTheSoftwareSystemIsNotNull(softwareSystem);
186207 # assertThatTheViewKeyIsSpecifiedAndUnique(key);
@@ -193,6 +214,15 @@ def create_container_view(
193214 def create_component_view (
194215 self , component_view : Optional [ComponentView ] = None , ** kwargs
195216 ) -> ComponentView :
217+ """
218+ Add a new ComponentView to the ViewSet.
219+
220+ Args:
221+ component_view (ComponentView, optional): Either provide a
222+ `ComponentView` instance or
223+ **kwargs: Provide keyword arguments for instantiating a `ComponentView`
224+ (recommended).
225+ """
196226 # TODO:
197227 # AssertThatTheViewKeyIsUnique(key);
198228 if component_view is None :
@@ -202,6 +232,7 @@ def create_component_view(
202232 return component_view
203233
204234 def copy_layout_information_from (self , source : "ViewSet" ) -> None :
235+ """Copy all the layout information from a source ViewSet."""
205236 for source_view in source .system_landscape_views :
206237 destination_view = self ._find_system_landscape_view (source_view )
207238 if destination_view :
0 commit comments