@@ -152,14 +152,16 @@ def create_big_bank_workspace():
152
152
single_page_application .tags .add (web_browser_tag )
153
153
mobile_app = internet_banking_system .add_container (
154
154
"Mobile App" ,
155
- "Provides a limited subset of the Internet banking functionality to customers via their mobile device." ,
155
+ "Provides a limited subset of the Internet banking functionality to "
156
+ + "customers via their mobile device." ,
156
157
"Xamarin" ,
157
158
id = "mobileApp" ,
158
159
)
159
160
mobile_app .tags .add (mobile_app_tag )
160
161
web_application = internet_banking_system .add_container (
161
162
"Web Application" ,
162
- "Delivers the static content and the Internet banking single page application." ,
163
+ "Delivers the static content and the Internet banking single page "
164
+ + "application." ,
163
165
"Java and Spring MVC" ,
164
166
id = "webApplication" ,
165
167
)
@@ -171,7 +173,8 @@ def create_big_bank_workspace():
171
173
)
172
174
database = internet_banking_system .add_container (
173
175
"Database" ,
174
- "Stores user registration information, hashed authentication credentials, access logs, etc." ,
176
+ "Stores user registration information, hashed authentication credentials, "
177
+ + "access logs, etc." ,
175
178
"Relational Database Schema" ,
176
179
id = "database" ,
177
180
)
@@ -188,8 +191,9 @@ def create_big_bank_workspace():
188
191
api_application .uses (email_system , "Sends e-mail using" , technology = "SMTP" )
189
192
190
193
# components
191
- # - for a real-world software system, you would probably want to extract the components using
192
- # - static analysis/reflection rather than manually specifying them all
194
+ # - for a real-world software system, you would probably want to extract the
195
+ # components using static analysis/reflection rather than manually specifying
196
+ # them all
193
197
194
198
signin_controller = api_application .add_component (
195
199
name = "Sign In Controller" ,
@@ -211,7 +215,8 @@ def create_big_bank_workspace():
211
215
)
212
216
security_component = api_application .add_component (
213
217
name = "Security Component" ,
214
- description = "Provides functionality related to signing in, changing passwords, etc." ,
218
+ description = "Provides functionality related to signing in, changing passwords, "
219
+ + "etc." ,
215
220
technology = "Spring Bean" ,
216
221
id = "securityComponent" ,
217
222
)
@@ -353,7 +358,8 @@ def create_big_bank_workspace():
353
358
secondary_database_server .tags .add (failover_tag )
354
359
secondary_database = secondary_database_server .add_container (database )
355
360
356
- # # model.Relationships.Where(r=>r.Destination.Equals(secondary_database)).ToList().ForEach(r=>r.tags.add(failover_tag))
361
+ # model.Relationships.Where(r=>r.Destination.Equals(secondary_database)).ToList()
362
+ # .ForEach(r=>r.tags.add(failover_tag))
357
363
data_replication_relationship = primary_database_server .uses (
358
364
secondary_database_server , "Replicates data to"
359
365
)
@@ -400,7 +406,8 @@ def create_big_bank_workspace():
400
406
component_view .add (email_system )
401
407
component_view .paper_size = PaperSize .A5_Landscape
402
408
403
- # systemLandscapeView.AddAnimation(internet_banking_system, customer, mainframe_banking_system, emailSystem)
409
+ # systemLandscapeView.AddAnimation(internet_banking_system, customer,
410
+ # mainframe_banking_system, emailSystem)
404
411
# systemLandscapeView.AddAnimation(atm)
405
412
# systemLandscapeView.AddAnimation(customerServiceStaff, back_office_staff)
406
413
@@ -418,20 +425,24 @@ def create_big_bank_workspace():
418
425
419
426
# componentView.AddAnimation(singlePageApplication, mobile_app)
420
427
# componentView.AddAnimation(signinController, securityComponent, database)
421
- # componentView.AddAnimation(accountsSummaryController, mainframe_banking_systemFacade, mainframe_banking_system)
428
+ # componentView.AddAnimation(accountsSummaryController,
429
+ # mainframe_banking_systemFacade, mainframe_banking_system)
422
430
# componentView.AddAnimation(resetPasswordController, emailComponent, database)
423
431
424
432
# # dynamic diagrams and deployment diagrams are not available with the Free Plan
425
- # DynamicView dynamicView = views.CreateDynamicView(apiApplication, "SignIn", "Summarises how the sign in feature works in the single-page application.")
433
+ # DynamicView dynamicView = views.CreateDynamicView(apiApplication, "SignIn",
434
+ # "Summarises how the sign in feature works in the single-page application.")
426
435
# dynamicView.Add(singlePageApplication, "Submits credentials to", signinController)
427
436
# dynamicView.Add(signinController, "Calls isAuthenticated() on", securityComponent)
428
- # dynamicView.Add(securityComponent, "select * from users where username = ?", database)
437
+ # dynamicView.Add(securityComponent, "select * from users where username = ?",
438
+ # database)
429
439
# dynamicView.PaperSize = PaperSize.A5_Landscape
430
440
431
441
development_deployment_view = views .create_deployment_view (
432
442
software_system = internet_banking_system ,
433
443
key = "DevelopmentDeployment" ,
434
- description = "An example development deployment scenario for the Internet Banking System." ,
444
+ description = "An example development deployment scenario for the Internet "
445
+ + "Banking System." ,
435
446
environment = "Development" ,
436
447
)
437
448
development_deployment_view .add (developer_laptop )
@@ -440,7 +451,8 @@ def create_big_bank_workspace():
440
451
live_deployment_view = views .create_deployment_view (
441
452
software_system = internet_banking_system ,
442
453
key = "LiveDeployment" ,
443
- description = "An example live deployment scenario for the Internet Banking System." ,
454
+ description = "An example live deployment scenario for the Internet Banking "
455
+ + "System." ,
444
456
environment = "Live" ,
445
457
)
446
458
live_deployment_view += big_bank_data_center
0 commit comments