Skip to content

Commit

Permalink
A few minor tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbrowndotje committed Jul 1, 2016
1 parent 698eba4 commit 5eab0c1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion structurizr-core/src/com/structurizr/view/View.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public abstract class View {
if (key != null && key.trim().length() > 0) {
setKey(key);
} else {
throw new IllegalArgumentException("A key must be specified");
throw new IllegalArgumentException("A key must be specified.");
}
setDescription(description);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ public static void main(String[] args) throws Exception {

ViewSet views = workspace.getViews();

ContainerView containerView = views.createContainerView(mySoftwareSystem, "containers", null);
ContainerView containerView = views.createContainerView(mySoftwareSystem, "Containers", null);
containerView.addAllElements();

DynamicView dynamicView = views.createDynamicView(mySoftwareSystem, "Business Event X", "This diagram shows what happens when business event X is received.");
DynamicView dynamicView = views.createDynamicView(mySoftwareSystem, "BusinessEventX", "This diagram shows what happens when business event X is received.");
dynamicView.add(microserviceA, messageBus);
dynamicView.startChildSequence();
dynamicView.add(messageBus, microserviceB);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public static void main(String[] args) throws Exception {

// create some views
ViewSet viewSet = workspace.getViews();
SystemContextView contextView = viewSet.createSystemContextView(financialRiskSystem, "context", "An example System Context diagram for the Financial Risk System architecture kata.");
SystemContextView contextView = viewSet.createSystemContextView(financialRiskSystem, "Context", "An example System Context diagram for the Financial Risk System architecture kata.");
contextView.addAllSoftwareSystems();
contextView.addAllPeople();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
A global investment bank based in London, New York and Singapore trades (buys and sells) financial products with other banks (counterparties). When share prices on the stock markets move up or down, the bank either makes money or loses it. At the end of the working day, the bank needs to gain a view of how much risk they are exposed to (e.g. of losing money) by running some calculations on the data held about their trades. The bank has an existing Trade Data System (TDS) and Reference Data System (RDS) but need a new Risk System.

![](embed:1)
![](embed:Context)

## Trade Data System

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public static void main(String[] args) throws Exception {
Component clinicService = webApplication.getComponentWithName("ClinicService");
Component vetRepository = webApplication.getComponentWithName("VetRepository");

DynamicView dynamicView = viewSet.createDynamicView(springPetClinic, "View List Of Vets", "Shows how the \"view list of vets\" feature works.");
DynamicView dynamicView = viewSet.createDynamicView(springPetClinic, "viewListOfVets", "Shows how the \"view list of vets\" feature works.");
dynamicView.add(clinicEmployee, "Requests list of vets from /vets", vetController);
dynamicView.add(vetController, "Calls findVets", clinicService);
dynamicView.add(clinicService, "Calls findAll", vetRepository);
Expand Down

0 comments on commit 5eab0c1

Please sign in to comment.