Package com.structurizr.view
Class DeploymentView
java.lang.Object
com.structurizr.view.View
com.structurizr.view.DeploymentView
public final class DeploymentView extends View
A deployment view, used to show the mapping of container instances to deployment nodes.
-
Method Summary
Modifier and Type Method Description 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.RelationshipViewadd(Relationship relationship)Adds a Relationship to this view.voidaddAllDeploymentNodes()Adds all of the top-level deployment nodes to this view.voidaddAnimation(ContainerInstance... containerInstances)Adds an animation step, with the specified container instances.protected booleancanBeRemoved(Element element)java.util.List<com.structurizr.view.Animation>getAnimations()java.lang.StringgetEnvironment()Gets the name of the environment that this deployment view is for (e.g.ModelgetModel()Gets the model that this view belongs to.java.lang.StringgetName()Gets the (computed) name of this view.voidsetEnvironment(java.lang.String environment)Sets the name of the environment that this deployment view is for (e.g.Methods inherited from class com.structurizr.view.View
addElement, addRelationship, addRelationship, disableAutomaticLayout, enableAutomaticLayout, enableAutomaticLayout, getAutomaticLayout, getDescription, getElements, getElementView, getKey, getPaperSize, getRelationships, getRelationshipView, getSoftwareSystem, getSoftwareSystemId, getTitle, getViewSet, isElementInView, remove, removeElement, removeElementsWithNoRelationships, removeRelationshipsNotConnectedToElement, setDescription, setLayoutMergeStrategy, setPaperSize, setTitle
-
Method Details
-
getModel
Description copied from class:ViewGets the model that this view belongs to. -
addAllDeploymentNodes
public void addAllDeploymentNodes()Adds all of the top-level deployment nodes to this view. -
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 a Relationship to this view.- Parameters:
relationship- the Relationship to be added- Returns:
- a RelationshipView object representing the relationship added
-
getName
public java.lang.String getName()Gets the (computed) name of this view. -
getEnvironment
public java.lang.String 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
public void setEnvironment(java.lang.String environment)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
-
canBeRemoved
- Specified by:
canBeRemovedin classView
-
addAnimation
Adds an animation step, with the specified container instances.- Parameters:
containerInstances- the container instances that should be shown in the animation step
-
getAnimations
public java.util.List<com.structurizr.view.Animation> getAnimations()
-