forked from nus-cs2103-AY2324S1/tp
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #229 from jianrong7/chore/dg
Chore/dg
- Loading branch information
Showing
15 changed files
with
479 additions
and
97 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@startuml | ||
start | ||
:User executes add customer command; | ||
|
||
'Since the beta syntax does not support placing the condition outside the | ||
'diamond we place it as the true branch instead. | ||
|
||
if () then ([User provided all required parameters]) | ||
:Customer's name, budget, phone number, email are parsed; | ||
if () then ([characteristics provided]) | ||
:Customer's characteristics is parsed; | ||
note left | ||
For a customer, only its | ||
characteristics are optional. | ||
end note | ||
else([else]) | ||
endif | ||
#palegreen:New customer is returned; | ||
stop | ||
else([User failed to provide required parameters correctly]) | ||
#pink:PropertyMatch displays an error; | ||
end | ||
@enduml |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@startuml | ||
start | ||
:User executes add property command; | ||
|
||
'Since the beta syntax does not support placing the condition outside the | ||
'diamond we place it as the true branch instead. | ||
|
||
if () then ([User provided all required parameters]) | ||
:Property's name, price, phone number, are parsed; | ||
if () then ([characteristics provided]) | ||
:Property's characteristics is parsed; | ||
note left | ||
For a property, only its | ||
characteristics are optional. | ||
end note | ||
else([else]) | ||
endif | ||
#palegreen:New property is returned; | ||
stop | ||
else([User failed to provide required parameters correctly]) | ||
#pink:PropertyMatch displays an error; | ||
end | ||
@enduml |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
@startuml | ||
skinparam ActivityFontSize 15 | ||
skinparam ArrowFontSize 12 | ||
|
||
package CustomerObjectDiagram { | ||
Object "<u>:Customer" as Customer { | ||
} | ||
|
||
Object "<u>:Name" as Name { | ||
} | ||
Object "<u>:Phone" as Phone { | ||
} | ||
Object "<u>:Email" as Email { | ||
} | ||
Object "<u>:Budget" as Budget { | ||
} | ||
Object "<u>:Tags" as Tags { | ||
} | ||
} | ||
|
||
Name <-- Customer : has < | ||
Phone <-- Customer : has < | ||
Email <-- Customer : has < | ||
Budget <-- Customer : has < | ||
Tags <-- Customer : has < | ||
|
||
@enduml |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
@startuml | ||
skinparam ActivityFontSize 15 | ||
skinparam ArrowFontSize 12 | ||
|
||
package PropertyObjectDiagram { | ||
Object "<u>:Property" as Property { | ||
} | ||
|
||
Object "<u>:PropName" as PropName { | ||
} | ||
Object "<u>:PropAddress" as PropAddress { | ||
} | ||
Object "<u>:PropPhone" as PropPhone { | ||
} | ||
Object "<u>:Price" as Price { | ||
} | ||
Object "<u>:Tags" as Tags { | ||
} | ||
} | ||
|
||
PropName <-- Property : has < | ||
PropAddress <-- Property : has < | ||
PropPhone <-- Property : has < | ||
Price <-- Property : has < | ||
Tags <-- Property : has < | ||
|
||
@enduml |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.