forked from nus-cs2103-AY2324S1/tp
-
Notifications
You must be signed in to change notification settings - Fork 5
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 #100 from tayian/branch-DG
Add DG, UG support for addCompany, deleteCompany
- Loading branch information
Showing
10 changed files
with
199 additions
and
10 deletions.
There are no files selected for viewing
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,14 @@ | ||
@startuml | ||
start | ||
: User executes command; | ||
: Parser parses command; | ||
|
||
if (Company already exists with same details?) then (yes) | ||
: User is informed that the Company already exists; | ||
stop | ||
else (no) | ||
: Create a new Company object with provided details; | ||
: Update the Model with the new Company; | ||
: User is informed that the Company is added; | ||
stop | ||
@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,36 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam ClassFontColor #000000 | ||
skinparam ClassBorderColor #000000 | ||
|
||
title Add Company Object Diagram | ||
|
||
class AddCompanyCommand as "__:AddCompanyCommand__" | ||
class Company as "__:Company__" | ||
class Name as "__TechCorp:Name__" | ||
class Industry as "__Technology:Industry__" | ||
class Location as "__Silicon Valley:Location__" | ||
class Description as "__Leading tech company:Description__" | ||
class Website as "__www.techcorp.com:Website__" | ||
class Email as "__contact@techcorp.com:Email__" | ||
class Phone as "__12345678:Phone__" | ||
class Address as "__123 Tech St, Silicon Valley:Address__" | ||
|
||
AddCompanyCommand --> Company | ||
Company --> Name | ||
Company --> Industry | ||
Company --> Location | ||
Company --> Description | ||
Company --> Website | ||
Company --> Email | ||
Company --> Phone | ||
Company --> Address | ||
|
||
Name -[hidden]> Industry | ||
Industry -[hidden]> Location | ||
Location -[hidden]> Description | ||
Description -[hidden]> Website | ||
Website -[hidden]> Email | ||
Email -[hidden]> Phone | ||
Phone -[hidden]> Address | ||
@end |
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,16 @@ | ||
@startuml | ||
start | ||
: User executes delete command; | ||
: DeleteCompanyCommandParser parses command; | ||
|
||
if (Company exists?) then (yes) | ||
' : Remove the Person from the designated Company's list; | ||
' : Update the Model by removing the Person from the address book; | ||
: Remove the Company from the designated Company's list; | ||
: User is informed that the company is deleted; | ||
stop | ||
else (no) | ||
: User is informed that the company index is invalid; | ||
stop | ||
endif | ||
@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,16 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam ClassFontColor #000000 | ||
skinparam ClassBorderColor #000000 | ||
|
||
title Delete Company Object Diagram | ||
|
||
class DeleteCompanyCommand as "__:DeleteCompanyCommand__" | ||
class Company as "__:Company__" | ||
class CompanyList as "__:List<Company>__" | ||
|
||
DeleteCompanyCommand --> Company | ||
DeleteCompanyCommand --> CompanyList | ||
|
||
CompanyList -[hidden]> Company | ||
@end |
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.