Created
June 24, 2014 19:00
-
-
Save simonbrowndotje/1745131bccf928a7c53c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Model model = ... | |
SoftwareSystem techTribes = model.getSoftwareSystemWithName("techtribes.je"); | |
Container contentUpdater = techTribes.getContainerWithName("Content Updater"); | |
// context view | |
ContextView contextView = model.createContextView(techTribes); | |
contextView.addAllSoftwareSystems(); | |
contextView.addAllPeople(); | |
// container view | |
ContainerView containerView = model.createContainerView(techTribes); | |
containerView.addAllSoftwareSystems(); | |
containerView.addAllPeople(); | |
containerView.addAllContainers(); | |
// component view for the content updater container | |
ComponentView componentView = model.createComponentView(techTribes, contentUpdater); | |
componentView.addAllSoftwareSystems(); | |
componentView.addAllContainers(); | |
componentView.addAllComponents(); | |
// let's exclude the logging component as it's used by everything | |
componentView.remove(contentUpdater.getComponentWithName("LoggingComponent")); | |
componentView.removeElementsWithNoRelationships(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment