261 lines
17 KiB
XML
261 lines
17 KiB
XML
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
|
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
<!-- Generated by graphviz version 2.42.4 (0)
|
|
-->
|
|
<!-- Title: Reservation System - Account Load Pages: 1 -->
|
|
<svg width="1610pt" height="757pt"
|
|
viewBox="0.00 0.00 1610.00 757.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 753)">
|
|
<title>Reservation System - Account Load</title>
|
|
<polygon fill="white" stroke="transparent" points="-4,4 -4,-753 1606,-753 1606,4 -4,4"/>
|
|
<text text-anchor="middle" x="801" y="-7.4" font-family="Arial" font-size="12.00">Reservation System - Account Loading</text>
|
|
<g id="clust1" class="cluster">
|
|
<title>cluster_reservationsystem</title>
|
|
<polygon fill="lightgrey" stroke="lightgrey" points="326,-304 326,-608 688,-608 688,-304 326,-304"/>
|
|
<text text-anchor="middle" x="507" y="-594.4" font-family="Arial" font-size="12.00">lodge.reservationsystem</text>
|
|
</g>
|
|
<g id="clust2" class="cluster">
|
|
<title>cluster_datamodel</title>
|
|
<polygon fill="lightblue" stroke="lightblue" points="696,-29 696,-428 1418,-428 1418,-29 696,-29"/>
|
|
<text text-anchor="middle" x="1057" y="-414.4" font-family="Arial" font-size="12.00">lodge.datamodel</text>
|
|
</g>
|
|
<g id="clust3" class="cluster">
|
|
<title>cluster_test</title>
|
|
<polygon fill="honeydew" stroke="honeydew" points="8,-510 8,-741 318,-741 318,-510 8,-510"/>
|
|
<text text-anchor="middle" x="163" y="-727.4" font-family="Arial" font-size="12.00">lodge (Test)</text>
|
|
</g>
|
|
<!-- AccomodationManager -->
|
|
<g id="node1" class="node">
|
|
<title>AccomodationManager</title>
|
|
<polygon fill="lightyellow" stroke="black" points="333.5,-496.5 333.5,-578.5 680.5,-578.5 680.5,-496.5 333.5,-496.5"/>
|
|
<text text-anchor="middle" x="507" y="-566.5" font-family="Arial" font-size="10.00">AccomodationManager</text>
|
|
<polyline fill="none" stroke="black" points="333.5,-559.5 680.5,-559.5 "/>
|
|
<text text-anchor="start" x="341.5" y="-547.5" font-family="Arial" font-size="10.00">+ AccomodationManager(home: String)</text>
|
|
<text text-anchor="start" x="341.5" y="-536.5" font-family="Arial" font-size="10.00">+ newAccount(phone: String, addr: Address, email: EmailAddress): Account</text>
|
|
<text text-anchor="start" x="341.5" y="-525.5" font-family="Arial" font-size="10.00">+ AddAccount(acct: Account)</text>
|
|
<text text-anchor="start" x="341.5" y="-514.5" font-family="Arial" font-size="10.00">+ UpdateAccount(acct: Account)</text>
|
|
<text text-anchor="start" x="341.5" y="-503.5" font-family="Arial" font-size="10.00">+ showAccountList()</text>
|
|
</g>
|
|
<!-- DataRepository -->
|
|
<g id="node2" class="node">
|
|
<title>DataRepository</title>
|
|
<polygon fill="lightyellow" stroke="black" points="442.5,-312.5 442.5,-413.5 611.5,-413.5 611.5,-312.5 442.5,-312.5"/>
|
|
<text text-anchor="middle" x="527" y="-401.5" font-family="Arial" font-size="10.00">DataRepository (Singleton)</text>
|
|
<polyline fill="none" stroke="black" points="442.5,-394.5 611.5,-394.5 "/>
|
|
<text text-anchor="start" x="450.5" y="-382.5" font-family="Arial" font-size="10.00">- directoryPath: String</text>
|
|
<text text-anchor="start" x="450.5" y="-371.5" font-family="Arial" font-size="10.00">- instance: DataRepository</text>
|
|
<polyline fill="none" stroke="black" points="442.5,-364.5 611.5,-364.5 "/>
|
|
<text text-anchor="start" x="450.5" y="-352.5" font-family="Arial" font-size="10.00">+ getInstance(): DataRepository</text>
|
|
<text text-anchor="start" x="450.5" y="-341.5" font-family="Arial" font-size="10.00">+ setDataStoreRoot(path: String)</text>
|
|
<text text-anchor="start" x="450.5" y="-330.5" font-family="Arial" font-size="10.00">+ getPath(): String</text>
|
|
<text text-anchor="start" x="450.5" y="-319.5" font-family="Arial" font-size="10.00">+ LoadAccount(file: Path): Account</text>
|
|
</g>
|
|
<!-- AccomodationManager->DataRepository -->
|
|
<g id="edge7" class="edge">
|
|
<title>AccomodationManager->DataRepository</title>
|
|
<path fill="none" stroke="black" d="M527,-496.15C527,-496.15 527,-423.72 527,-423.72"/>
|
|
<polygon fill="black" stroke="black" points="530.5,-423.72 527,-413.72 523.5,-423.72 530.5,-423.72"/>
|
|
<text text-anchor="middle" x="527" y="-452.8" font-family="Arial" font-size="9.00">uses</text>
|
|
</g>
|
|
<!-- Account -->
|
|
<g id="node3" class="node">
|
|
<title>Account</title>
|
|
<polygon fill="lightyellow" stroke="black" points="704,-158.5 704,-229.5 1010,-229.5 1010,-158.5 704,-158.5"/>
|
|
<text text-anchor="middle" x="857" y="-217.5" font-family="Arial" font-size="10.00">Account</text>
|
|
<polyline fill="none" stroke="black" points="704,-210.5 1010,-210.5 "/>
|
|
<text text-anchor="start" x="712" y="-198.5" font-family="Arial" font-size="10.00">+ Account()</text>
|
|
<text text-anchor="start" x="712" y="-187.5" font-family="Arial" font-size="10.00">+ Account(phone: String, mailAddr: Address, email: EmailAddress)</text>
|
|
<text text-anchor="start" x="712" y="-176.5" font-family="Arial" font-size="10.00">+ Write(acct: Account)</text>
|
|
<text text-anchor="start" x="712" y="-165.5" font-family="Arial" font-size="10.00">+ checkValid()</text>
|
|
</g>
|
|
<!-- AccomodationManager->Account -->
|
|
<g id="edge8" class="edge">
|
|
<title>AccomodationManager->Account</title>
|
|
<path fill="none" stroke="black" d="M634.5,-496.39C634.5,-410.09 634.5,-218 634.5,-218 634.5,-218 693.99,-218 693.99,-218"/>
|
|
<polygon fill="black" stroke="black" points="693.99,-221.5 703.99,-218 693.99,-214.5 693.99,-221.5"/>
|
|
<text text-anchor="middle" x="1073" y="-360.8" font-family="Arial" font-size="9.00">creates/updates</text>
|
|
</g>
|
|
<!-- AccountList -->
|
|
<g id="node4" class="node">
|
|
<title>AccountList</title>
|
|
<polygon fill="lightyellow" stroke="black" points="704,-327.5 704,-398.5 896,-398.5 896,-327.5 704,-327.5"/>
|
|
<text text-anchor="middle" x="800" y="-386.5" font-family="Arial" font-size="10.00">AccountList</text>
|
|
<polyline fill="none" stroke="black" points="704,-379.5 896,-379.5 "/>
|
|
<text text-anchor="start" x="712" y="-367.5" font-family="Arial" font-size="10.00">+ add(acct: Account)</text>
|
|
<text text-anchor="start" x="712" y="-356.5" font-family="Arial" font-size="10.00">+ save(acct: Account)</text>
|
|
<text text-anchor="start" x="712" y="-345.5" font-family="Arial" font-size="10.00">+ find(account_number: String): Account</text>
|
|
<text text-anchor="start" x="712" y="-334.5" font-family="Arial" font-size="10.00">+ showAccountList()</text>
|
|
</g>
|
|
<!-- AccomodationManager->AccountList -->
|
|
<g id="edge6" class="edge">
|
|
<title>AccomodationManager->AccountList</title>
|
|
<path fill="none" stroke="black" d="M657.5,-496.15C657.5,-444.54 657.5,-363 657.5,-363 657.5,-363 691.77,-363 691.77,-363"/>
|
|
<polygon fill="black" stroke="black" points="691.77,-363 697.77,-359 703.77,-363 697.77,-367 691.77,-363"/>
|
|
<text text-anchor="middle" x="745" y="-452.8" font-family="Arial" font-size="9.00">manages 1</text>
|
|
</g>
|
|
<!-- Exception -->
|
|
<g id="node11" class="node">
|
|
<title>Exception</title>
|
|
<polygon fill="lightyellow" stroke="black" points="258,-345 258,-381 318,-381 318,-345 258,-345"/>
|
|
<text text-anchor="middle" x="288" y="-360.5" font-family="Arial" font-size="10.00">Exception</text>
|
|
</g>
|
|
<!-- AccomodationManager->Exception -->
|
|
<g id="edge14" class="edge">
|
|
<title>AccomodationManager->Exception</title>
|
|
<path fill="none" stroke="red" stroke-dasharray="5,2" d="M333.34,-507C321.27,-507 313.75,-507 313.75,-507 313.75,-507 313.75,-391.24 313.75,-391.24"/>
|
|
<polygon fill="red" stroke="red" points="313.75,-381.24 318.25,-391.24 313.75,-386.24 313.75,-391.24 313.75,-391.24 313.75,-391.24 313.75,-386.24 309.25,-391.24 313.75,-381.24 313.75,-381.24"/>
|
|
<text text-anchor="middle" x="312.5" y="-452.8" font-family="Arial" font-size="9.00"><<throws>></text>
|
|
</g>
|
|
<!-- DataRepository->Account -->
|
|
<g id="edge13" class="edge">
|
|
<title>DataRepository->Account</title>
|
|
<path fill="none" stroke="black" d="M599.5,-312.46C599.5,-266.56 599.5,-206 599.5,-206 599.5,-206 693.86,-206 693.86,-206"/>
|
|
<polygon fill="black" stroke="black" points="693.86,-209.5 703.86,-206 693.86,-202.5 693.86,-209.5"/>
|
|
<text text-anchor="middle" x="609.5" y="-268.8" font-family="Arial" font-size="9.00">loads</text>
|
|
</g>
|
|
<!-- IOException -->
|
|
<g id="node12" class="node">
|
|
<title>IOException</title>
|
|
<polygon fill="lightyellow" stroke="black" points="504.5,-38.5 504.5,-74.5 575.5,-74.5 575.5,-38.5 504.5,-38.5"/>
|
|
<text text-anchor="middle" x="540" y="-54" font-family="Arial" font-size="10.00">IOException</text>
|
|
</g>
|
|
<!-- DataRepository->IOException -->
|
|
<g id="edge18" class="edge">
|
|
<title>DataRepository->IOException</title>
|
|
<path fill="none" stroke="red" stroke-dasharray="5,2" d="M528.17,-312.39C528.17,-312.39 528.17,-84.62 528.17,-84.62"/>
|
|
<polygon fill="red" stroke="red" points="528.17,-74.62 532.67,-84.62 528.17,-79.62 528.17,-84.62 528.17,-84.62 528.17,-84.62 528.17,-79.62 523.67,-84.62 528.17,-74.62 528.17,-74.62"/>
|
|
<text text-anchor="middle" x="508.5" y="-191.8" font-family="Arial" font-size="9.00"><<throws>></text>
|
|
</g>
|
|
<!-- Account->DataRepository -->
|
|
<g id="edge12" class="edge">
|
|
<title>Account->DataRepository</title>
|
|
<path fill="none" stroke="black" d="M703.75,-194C643.07,-194 587.5,-194 587.5,-194 587.5,-194 587.5,-302.29 587.5,-302.29"/>
|
|
<polygon fill="black" stroke="black" points="584,-302.29 587.5,-312.29 591,-302.29 584,-302.29"/>
|
|
<text text-anchor="middle" x="739" y="-268.8" font-family="Arial" font-size="9.00">uses for persistence</text>
|
|
</g>
|
|
<!-- Address -->
|
|
<g id="node5" class="node">
|
|
<title>Address</title>
|
|
<polygon fill="lightyellow" stroke="black" points="904,-37.5 904,-75.5 1190,-75.5 1190,-37.5 904,-37.5"/>
|
|
<text text-anchor="middle" x="1047" y="-63.5" font-family="Arial" font-size="10.00">Address</text>
|
|
<polyline fill="none" stroke="black" points="904,-56.5 1190,-56.5 "/>
|
|
<text text-anchor="start" x="912" y="-44.5" font-family="Arial" font-size="10.00">+ Address(street: String, city: String, state: String, zip: String)</text>
|
|
</g>
|
|
<!-- Account->Address -->
|
|
<g id="edge10" class="edge">
|
|
<title>Account->Address</title>
|
|
<path fill="none" stroke="black" d="M957,-158.23C957,-158.23 957,-85.58 957,-85.58"/>
|
|
<polygon fill="black" stroke="black" points="960.5,-85.58 957,-75.58 953.5,-85.58 960.5,-85.58"/>
|
|
<text text-anchor="middle" x="1019" y="-114.8" font-family="Arial" font-size="9.00">has mailing</text>
|
|
</g>
|
|
<!-- EmailAddress -->
|
|
<g id="node6" class="node">
|
|
<title>EmailAddress</title>
|
|
<polygon fill="lightyellow" stroke="black" points="1262.5,-37.5 1262.5,-75.5 1409.5,-75.5 1409.5,-37.5 1262.5,-37.5"/>
|
|
<text text-anchor="middle" x="1336" y="-63.5" font-family="Arial" font-size="10.00">EmailAddress</text>
|
|
<polyline fill="none" stroke="black" points="1262.5,-56.5 1409.5,-56.5 "/>
|
|
<text text-anchor="start" x="1270.5" y="-44.5" font-family="Arial" font-size="10.00">+ EmailAddress(email: String)</text>
|
|
</g>
|
|
<!-- Account->EmailAddress -->
|
|
<g id="edge11" class="edge">
|
|
<title>Account->EmailAddress</title>
|
|
<path fill="none" stroke="black" d="M1010.24,-166C1142.19,-166 1311.5,-166 1311.5,-166 1311.5,-166 1311.5,-85.57 1311.5,-85.57"/>
|
|
<polygon fill="black" stroke="black" points="1315,-85.57 1311.5,-75.57 1308,-85.57 1315,-85.57"/>
|
|
<text text-anchor="middle" x="1262" y="-114.8" font-family="Arial" font-size="9.00">has</text>
|
|
</g>
|
|
<!-- IllegalArgumentException -->
|
|
<g id="node8" class="node">
|
|
<title>IllegalArgumentException</title>
|
|
<polygon fill="lightyellow" stroke="black" points="704,-38.5 704,-74.5 832,-74.5 832,-38.5 704,-38.5"/>
|
|
<text text-anchor="middle" x="768" y="-54" font-family="Arial" font-size="10.00">IllegalArgumentException</text>
|
|
</g>
|
|
<!-- Account->IllegalArgumentException -->
|
|
<g id="edge16" class="edge">
|
|
<title>Account->IllegalArgumentException</title>
|
|
<path fill="none" stroke="red" stroke-dasharray="5,2" d="M768,-158.23C768,-158.23 768,-84.82 768,-84.82"/>
|
|
<polygon fill="red" stroke="red" points="768,-74.82 772.5,-84.82 768,-79.82 768,-84.82 768,-84.82 768,-84.82 768,-79.82 763.5,-84.82 768,-74.82 768,-74.82"/>
|
|
<text text-anchor="middle" x="841.5" y="-114.8" font-family="Arial" font-size="9.00"><<throws>></text>
|
|
</g>
|
|
<!-- Account->IOException -->
|
|
<g id="edge17" class="edge">
|
|
<title>Account->IOException</title>
|
|
<path fill="none" stroke="red" stroke-dasharray="5,2" d="M703.97,-170C627.83,-170 551.83,-170 551.83,-170 551.83,-170 551.83,-84.74 551.83,-84.74"/>
|
|
<polygon fill="red" stroke="red" points="551.83,-74.74 556.33,-84.74 551.83,-79.74 551.83,-84.74 551.83,-84.74 551.83,-84.74 551.83,-79.74 547.33,-84.74 551.83,-74.74 551.83,-74.74"/>
|
|
<text text-anchor="middle" x="668.5" y="-114.8" font-family="Arial" font-size="9.00"><<throws>></text>
|
|
</g>
|
|
<!-- AccountList->Account -->
|
|
<g id="edge9" class="edge">
|
|
<title>AccountList->Account</title>
|
|
<path fill="none" stroke="black" d="M800,-327.16C800,-327.16 800,-241.79 800,-241.79"/>
|
|
<polygon fill="none" stroke="black" points="800,-241.79 796,-235.79 800,-229.79 804,-235.79 800,-241.79"/>
|
|
<text text-anchor="middle" x="864" y="-268.8" font-family="Arial" font-size="9.00">0..*</text>
|
|
</g>
|
|
<!-- DuplicateObjectException -->
|
|
<g id="node7" class="node">
|
|
<title>DuplicateObjectException</title>
|
|
<polygon fill="lightyellow" stroke="black" points="1082,-176 1082,-212 1212,-212 1212,-176 1082,-176"/>
|
|
<text text-anchor="middle" x="1147" y="-191.5" font-family="Arial" font-size="10.00">DuplicateObjectException</text>
|
|
</g>
|
|
<!-- AccountList->DuplicateObjectException -->
|
|
<g id="edge15" class="edge">
|
|
<title>AccountList->DuplicateObjectException</title>
|
|
<path fill="none" stroke="red" stroke-dasharray="5,2" d="M896.2,-363C998.89,-363 1147,-363 1147,-363 1147,-363 1147,-222.09 1147,-222.09"/>
|
|
<polygon fill="red" stroke="red" points="1147,-212.09 1151.5,-222.09 1147,-217.09 1147,-222.09 1147,-222.09 1147,-222.09 1147,-217.09 1142.5,-222.09 1147,-212.09 1147,-212.09"/>
|
|
<text text-anchor="middle" x="973.5" y="-268.8" font-family="Arial" font-size="9.00"><<throws>></text>
|
|
</g>
|
|
<!-- TestAccountLoad -->
|
|
<g id="node9" class="node">
|
|
<title>TestAccountLoad</title>
|
|
<polygon fill="lightyellow" stroke="black" points="16.5,-662.5 16.5,-711.5 309.5,-711.5 309.5,-662.5 16.5,-662.5"/>
|
|
<text text-anchor="middle" x="163" y="-699.5" font-family="Arial" font-size="10.00">TestAccountLoad</text>
|
|
<polyline fill="none" stroke="black" points="16.5,-692.5 309.5,-692.5 "/>
|
|
<text text-anchor="start" x="24.5" y="-680.5" font-family="Arial" font-size="10.00">+ main(args: String[])</text>
|
|
<text text-anchor="start" x="24.5" y="-669.5" font-family="Arial" font-size="10.00">- Test_AddAccount(mgr: AccomodationManager, acct: Account)</text>
|
|
</g>
|
|
<!-- TestAccountLoad->AccomodationManager -->
|
|
<g id="edge1" class="edge">
|
|
<title>TestAccountLoad->AccomodationManager</title>
|
|
<path fill="none" stroke="black" d="M283.75,-662.34C283.75,-627.49 283.75,-568 283.75,-568 283.75,-568 323.3,-568 323.3,-568"/>
|
|
<polygon fill="black" stroke="black" points="323.3,-571.5 333.3,-568 323.3,-564.5 323.3,-571.5"/>
|
|
<text text-anchor="middle" x="403" y="-618.8" font-family="Arial" font-size="9.00">uses</text>
|
|
</g>
|
|
<!-- TestAccountLoad->Account -->
|
|
<g id="edge2" class="edge">
|
|
<title>TestAccountLoad->Account</title>
|
|
<path fill="none" stroke="black" d="M237,-662.3C237,-560.91 237,-182 237,-182 237,-182 693.74,-182 693.74,-182"/>
|
|
<polygon fill="black" stroke="black" points="693.74,-185.5 703.74,-182 693.74,-178.5 693.74,-185.5"/>
|
|
<text text-anchor="middle" x="1225" y="-452.8" font-family="Arial" font-size="9.00">uses</text>
|
|
</g>
|
|
<!-- TestAccountLoad->Address -->
|
|
<g id="edge3" class="edge">
|
|
<title>TestAccountLoad->Address</title>
|
|
<path fill="none" stroke="black" d="M309.8,-678C560.89,-678 1046,-678 1046,-678 1046,-678 1046,-85.78 1046,-85.78"/>
|
|
<polygon fill="black" stroke="black" points="1049.5,-85.78 1046,-75.78 1042.5,-85.78 1049.5,-85.78"/>
|
|
<text text-anchor="middle" x="1411.5" y="-360.8" font-family="Arial" font-size="9.00">creates</text>
|
|
</g>
|
|
<!-- TestAccountLoad->EmailAddress -->
|
|
<g id="edge4" class="edge">
|
|
<title>TestAccountLoad->EmailAddress</title>
|
|
<path fill="none" stroke="black" d="M309.54,-695C629.15,-695 1360.5,-695 1360.5,-695 1360.5,-695 1360.5,-85.61 1360.5,-85.61"/>
|
|
<polygon fill="black" stroke="black" points="1364,-85.61 1360.5,-75.61 1357,-85.61 1364,-85.61"/>
|
|
<text text-anchor="middle" x="1586.5" y="-360.8" font-family="Arial" font-size="9.00">creates</text>
|
|
</g>
|
|
<!-- TestAccountLoad_getRepositoryConfig -->
|
|
<g id="node10" class="node">
|
|
<title>TestAccountLoad_getRepositoryConfig</title>
|
|
<polygon fill="lightyellow" stroke="black" points="110,-518.5 110,-556.5 216,-556.5 216,-518.5 110,-518.5"/>
|
|
<text text-anchor="middle" x="163" y="-544.5" font-family="Arial" font-size="10.00">getRepositoryConfig</text>
|
|
<polyline fill="none" stroke="black" points="110,-537.5 216,-537.5 "/>
|
|
<text text-anchor="start" x="118" y="-525.5" font-family="Arial" font-size="10.00">+ getPath(): String</text>
|
|
</g>
|
|
<!-- TestAccountLoad->TestAccountLoad_getRepositoryConfig -->
|
|
<g id="edge5" class="edge">
|
|
<title>TestAccountLoad->TestAccountLoad_getRepositoryConfig</title>
|
|
<path fill="none" stroke="black" stroke-dasharray="5,2" d="M163,-662.31C163,-662.31 163,-566.52 163,-566.52"/>
|
|
<polygon fill="black" stroke="black" points="163,-556.52 167.5,-566.52 163,-561.52 163,-566.52 163,-566.52 163,-566.52 163,-561.52 158.5,-566.52 163,-556.52 163,-556.52"/>
|
|
<text text-anchor="middle" x="182.5" y="-618.8" font-family="Arial" font-size="9.00">has inner</text>
|
|
</g>
|
|
</g>
|
|
</svg>
|