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 branch 'master' of https://github.com/AY2324S1-CS2103T-W12-1/tp …
…into v1.4-jasonray168-PPP-Update
- Loading branch information
Showing
30 changed files
with
1,117 additions
and
762 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,24 @@ | ||
@startuml | ||
'https://plantuml.com/activity-diagram-beta | ||
|
||
start | ||
:User inputs overtime command; | ||
|
||
if () then ([else]) | ||
:Display error message; | ||
else ([valid command]) | ||
if () then ([else]) | ||
:Display error message; | ||
else ([valid ID]) | ||
if () then ([else]) | ||
:Display error message; | ||
else ([valid operation]) | ||
if () then ([else]) | ||
:Display error message; | ||
else ([valid amount]) | ||
:Update employee's overtime hours; | ||
:Display overtime success message; | ||
endif | ||
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,72 @@ | ||
@startuml | ||
!include style.puml | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":AddressBookParser" as AddressBookParser LOGIC_COLOR | ||
participant ":OvertimeCommandParser" as OvertimeCommandParser LOGIC_COLOR | ||
participant "r:OvertimeCommand" as OvertimeCommand LOGIC_COLOR | ||
participant ":CommandResult" as CommandResult LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":Model" as Model MODEL_COLOR | ||
end box | ||
[-> LogicManager : execute("overtime id/EID1234-5678 o/inc a/2") | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand("overtime id/EID1234-5678 o/inc a/2") | ||
activate AddressBookParser | ||
|
||
create OvertimeCommandParser | ||
AddressBookParser -> OvertimeCommandParser | ||
activate OvertimeCommandParser | ||
|
||
OvertimeCommandParser --> AddressBookParser | ||
deactivate OvertimeCommandParser | ||
|
||
AddressBookParser -> OvertimeCommandParser : parse("overtime id/EID1234-5678 o/inc a/2") | ||
activate OvertimeCommandParser | ||
|
||
create OvertimeCommand | ||
OvertimeCommandParser -> OvertimeCommand | ||
activate OvertimeCommand | ||
|
||
OvertimeCommand --> OvertimeCommandParser : r | ||
deactivate OvertimeCommand | ||
|
||
OvertimeCommandParser --> AddressBookParser : r | ||
deactivate OvertimeCommandParser | ||
|
||
OvertimeCommandParser -[hidden]-> AddressBookParser | ||
destroy OvertimeCommandParser | ||
|
||
AddressBookParser --> LogicManager : r | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> OvertimeCommand : execute() | ||
activate OvertimeCommand | ||
|
||
OvertimeCommand -> Model : setEmployee(employeeToUpdate, updatedEmployee) | ||
activate Model | ||
|
||
Model --> OvertimeCommand | ||
|
||
OvertimeCommand -> Model : updateFilteredEmployeeList() | ||
|
||
Model --> OvertimeCommand | ||
deactivate Model | ||
|
||
create CommandResult | ||
OvertimeCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> OvertimeCommand | ||
deactivate CommandResult | ||
|
||
OvertimeCommand --> LogicManager : result | ||
deactivate OvertimeCommand | ||
|
||
[<--LogicManager | ||
deactivate LogicManager | ||
@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
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
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
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.
Oops, something went wrong.