forked from nus-cs2103-AY1920S1/addressbook-level3
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 #162 from Cary-Xx/finalDevelop
Final develop
- Loading branch information
Showing
9 changed files
with
119 additions
and
85 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,40 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam arrowThickness 1.1 | ||
skinparam arrowColor LOGIC_COLOR_T4 | ||
skinparam classBackgroundColor LOGIC_COLOR | ||
|
||
package Logic { | ||
|
||
|
||
package Command { | ||
Class CommandResult | ||
Class "{abstract}\nCommand" as Command | ||
} | ||
|
||
Interface Logic <<Interface>> | ||
Class LogicManager | ||
Class CommandHistory | ||
|
||
LogicManager --> CommandHistory | ||
} | ||
|
||
package Model{ | ||
Class HiddenModel #FFFFFF | ||
} | ||
|
||
Class HiddenOutside #FFFFFF | ||
HiddenOutside ..> Logic | ||
|
||
LogicManager .up.|> Logic | ||
|
||
HistoryCommand -up-|> Command | ||
LogicManager .left.> Command : executes > | ||
|
||
LogicManager --> Model | ||
Command .right.> Model | ||
|
||
Logic ..> CommandResult | ||
LogicManager .down.> CommandResult | ||
Command .up.> CommandResult | ||
@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,34 @@ | ||
@startuml | ||
!include style.puml | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant "h:HistoryCommand" as HistoryCommand LOGIC_COLOR | ||
participant "c:CommandHistory" as CommandHistory LOGIC_COLOR | ||
participant ":CommandResult" as CommandResult LOGIC_COLOR | ||
end box | ||
|
||
[-> LogicManager : execute("history") | ||
activate LogicManager | ||
|
||
LogicManager -> HistoryCommand : execute(model, history) | ||
activate HistoryCommand | ||
|
||
HistoryCommand -> CommandHistory : getHistory(history) | ||
activate CommandHistory | ||
|
||
CommandHistory -> HistoryCommand : list<History> | ||
deactivate CommandHistory | ||
|
||
HistoryCommand -> CommandResult : list<History> | ||
activate CommandResult | ||
|
||
CommandResult --> HistoryCommand : commandResult | ||
deactivate CommandResult | ||
|
||
HistoryCommand --> LogicManager : commandResult | ||
deactivate HistoryCommand | ||
|
||
[<--LogicManager | ||
deactivate LogicManager | ||
@enduml |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.