Package com.structurizr.view
Class DeploymentView
java.lang.Object
com.structurizr.view.View
com.structurizr.view.DeploymentView
A deployment view, used to show the mapping of container instances to deployment nodes.
-
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ContainerInstance containerInstance) Adds a container instance (and its parent deployment nodes) to this view.voidadd(DeploymentNode deploymentNode) Adds a deployment node to this view, including relationships to/from that deployment node (and children).voidadd(DeploymentNode deploymentNode, boolean addRelationships) Adds a deployment node to this view.voidadd(InfrastructureNode infrastructureNode) Adds an infrastructure node (and its parent deployment nodes) to this view.add(Relationship relationship) Adds a Relationship to this view.voidadd(SoftwareSystemInstance softwareSystemInstance) Adds a software system instance (and its parent deployment nodes) to this view.voidAdds all of the top-level deployment nodes to this view, for the same deployment environment (if set).voidaddAnimation(InfrastructureNode... infrastructureNodes) Adds an animation step, with the specified infrastructure nodes.voidaddAnimation(StaticStructureElementInstance... elementInstances) Adds an animation step, with the specified element instances.voidaddAnimation(StaticStructureElementInstance[] elementInstances, InfrastructureNode[] infrastructureNodes) Adds an animation step, with the specified container instances and infrastructure nodes.voidAdds the default set of elements to this view.protected booleancanBeRemoved(Element element) protected voidcheckElementCanBeAdded(Element elementToBeAdded) Gets the name of the environment that this deployment view is for (e.g.getModel()Gets the model that this view belongs to.getName()Gets the (computed) name of this view.voidremove(ContainerInstance containerInstance) Removes a container instance from this view.voidremove(DeploymentNode deploymentNode) Removes the given deployment node from this view.voidremove(InfrastructureNode infrastructureNode) Removes an infrastructure node from this view.voidremove(SoftwareSystemInstance softwareSystemInstance) Removes a software system instance from this view.voidsetEnvironment(String environment) Sets the name of the environment that this deployment view is for (e.g.Methods inherited from class com.structurizr.view.View
add, add, addElement, addNearestNeighbours, addRelationship, disableAutomaticLayout, enableAutomaticLayout, enableAutomaticLayout, enableAutomaticLayout, enableAutomaticLayout, getAutomaticLayout, getDescription, getDimensions, getElements, getElementView, getKey, getMergeFromRemote, getOrder, getPaperSize, getRelationships, getRelationshipView, getSoftwareSystem, getSoftwareSystemId, getTitle, getViewSet, isElementInView, remove, remove, removeElement, removeElementsWithNoRelationships, removeRelationshipsNotConnectedToElement, setDescription, setDimensions, setLayoutMergeStrategy, setMergeFromRemote, setPaperSize, setTitle
-
Method Details
-
getModel
Description copied from class:ViewGets the model that this view belongs to. -
addDefaultElements
public void addDefaultElements()Adds the default set of elements to this view. -
addAllDeploymentNodes
public void addAllDeploymentNodes()Adds all of the top-level deployment nodes to this view, for the same deployment environment (if set). -
add
Adds a deployment node to this view, including relationships to/from that deployment node (and children).- Parameters:
deploymentNode- the DeploymentNode to add
-
add
Adds a deployment node to this view.- Parameters:
deploymentNode- the DeploymentNode to addaddRelationships- whether to add relationships to/from the person
-
add
Adds an infrastructure node (and its parent deployment nodes) to this view.- Parameters:
infrastructureNode- the InfrastructureNode to add
-
add
Adds a software system instance (and its parent deployment nodes) to this view.- Parameters:
softwareSystemInstance- the SoftwareSystemInstance to add
-
add
Adds a container instance (and its parent deployment nodes) to this view.- Parameters:
containerInstance- the ContainerInstance to add
-
remove
Removes the given deployment node from this view.- Parameters:
deploymentNode- the DeploymentNode to be removed
-
remove
Removes an infrastructure node from this view.- Parameters:
infrastructureNode- the InfrastructureNode to be removed
-
remove
Removes a software system instance from this view.- Parameters:
softwareSystemInstance- the SoftwareSystemInstance to be removed
-
remove
Removes a container instance from this view.- Parameters:
containerInstance- the ContainerInstance to be removed
-
add
Adds a Relationship to this view.- Parameters:
relationship- the Relationship to be added- Returns:
- a RelationshipView object representing the relationship added
-
getName
Gets the (computed) name of this view. -
getEnvironment
Gets the name of the environment that this deployment view is for (e.g. "Development", "Live", etc).- Returns:
- the environment name, as a String
-
setEnvironment
Sets the name of the environment that this deployment view is for (e.g. "Development", "Live", etc).- Parameters:
environment- the environment name, as a String
-
checkElementCanBeAdded
- Specified by:
checkElementCanBeAddedin classView
-
canBeRemoved
- Specified by:
canBeRemovedin classView
-
addAnimation
Adds an animation step, with the specified infrastructure nodes.- Parameters:
infrastructureNodes- the infrastructure nodes that should be shown in the animation step
-
addAnimation
Adds an animation step, with the specified element instances.- Parameters:
elementInstances- the element instances that should be shown in the animation step
-
addAnimation
public void addAnimation(StaticStructureElementInstance[] elementInstances, InfrastructureNode[] infrastructureNodes) Adds an animation step, with the specified container instances and infrastructure nodes.- Parameters:
elementInstances- the element instances that should be shown in the animation stepinfrastructureNodes- the container infrastructure nodes that should be shown in the animation step
-
getAnimations
-