/** * Creates a deployment view, where the scope of the view is the specified software system. * * @param softwareSystem the SoftwareSystem object representing the scope of the view * @param key the key for the deployment view (must be unique) * @param description a description of the view * @return a DeploymentView object * @throws IllegalArgumentException if the software system is null or the key is not unique */ public DeploymentView createDeploymentView(SoftwareSystem softwareSystem, String key, String description) { assertThatTheSoftwareSystemIsNotNull(softwareSystem); assertThatTheViewKeyIsSpecifiedAndUnique(key); DeploymentView view = new DeploymentView(softwareSystem, key, description); view.setViewSet(this); deploymentViews.add(view); return view; }
/** * Creates a system context view, where the scope of the view is the specified software system. * * @param softwareSystem the SoftwareSystem object representing the scope of the view * @param key the key for the view (must be unique) * @param description a description of the view * @return a SystemContextView object * @throws IllegalArgumentException if the software system is null or the key is not unique */ public SystemContextView createSystemContextView(SoftwareSystem softwareSystem, String key, String description) { assertThatTheSoftwareSystemIsNotNull(softwareSystem); assertThatTheViewKeyIsSpecifiedAndUnique(key); SystemContextView view = new SystemContextView(softwareSystem, key, description); view.setViewSet(this); systemContextViews.add(view); return view; }
/** * Creates a container view, where the scope of the view is the specified software system. * * @param softwareSystem the SoftwareSystem object representing the scope of the view * @param key the key for the view (must be unique) * @param description a description of the view * @return a ContainerView object * @throws IllegalArgumentException if the software system is null or the key is not unique */ public ContainerView createContainerView(SoftwareSystem softwareSystem, String key, String description) { assertThatTheSoftwareSystemIsNotNull(softwareSystem); assertThatTheViewKeyIsSpecifiedAndUnique(key); ContainerView view = new ContainerView(softwareSystem, key, description); view.setViewSet(this); containerViews.add(view); return view; }
/** * Creates a dynamic view, where the scope is the specified software system. The following * elements can be added to the resulting view: * * <ul> * <li>People</li> * <li>Software systems</li> * <li>Containers that reside inside the specified software system</li> * </ul> * * @param softwareSystem the SoftwareSystem object representing the scope of the view * @param key the key for the view (must be unique) * @param description a description of the view * @return a DynamicView object * @throws IllegalArgumentException if the software system is null or the key is not unique */ public DynamicView createDynamicView(SoftwareSystem softwareSystem, String key, String description) { assertThatTheSoftwareSystemIsNotNull(softwareSystem); assertThatTheViewKeyIsSpecifiedAndUnique(key); DynamicView view = new DynamicView(softwareSystem, key, description); view.setViewSet(this); dynamicViews.add(view); return view; }