forked from nus-cs2103-AY2223S2/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 #238 from Lava-Iris/edit-documentation
Edit documentation
- Loading branch information
Showing
10 changed files
with
149 additions
and
11 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
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,17 @@ | ||
@startuml | ||
!pragma useVerticalIf on | ||
|
||
:User enters search command; | ||
if () then ( [else]) | ||
:Error: Invalid command provided; | ||
stop | ||
( [At least one keyword is provided]) elseif () then ( [else]) | ||
:Error: Invalid command format; | ||
stop | ||
else ( [Keyword is provided for every field mentioned]) | ||
endif | ||
:Search command successfully executes. | ||
Filtered list based on given keywords is displayed.; | ||
stop | ||
|
||
@enduml |
26 changes: 26 additions & 0 deletions
26
docs/diagrams/SearchCommandParseInformationFieldsDiagram.puml
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,26 @@ | ||
@startuml | ||
!include style.puml | ||
mainframe **ref** Parse Information Fields | ||
|
||
skinparam defaultFontSize 15 | ||
skinparam titleFontSize 15 | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":SearchCommandParser" as SearchCommandParser LOGIC_COLOR | ||
participant "FieldsContainKeywordsPredicate" as FieldsContainKeywordsPredicate LOGIC_COLOR | ||
end box | ||
|
||
activate SearchCommandParser | ||
|
||
opt ifPreamblePresent | ||
SearchCommandParser->FieldsContainKeywordsPredicate:setKeywords(keywords) | ||
activate FieldsContainKeywordsPredicate | ||
return | ||
end | ||
opt ifFieldPrefixPresent | ||
SearchCommandParser->FieldsContainKeywordsPredicate:setField(fieldKeyword) | ||
activate FieldsContainKeywordsPredicate | ||
return | ||
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,65 @@ | ||
@startuml | ||
!include style.puml | ||
|
||
skinparam defaultFontSize 15 | ||
skinparam SequenceReferencebackgroundColor LightYellow | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":ConnectUsParser" as ConnectUsParser LOGIC_COLOR | ||
participant ":SearchCommandParser" as SearchCommandParser LOGIC_COLOR | ||
participant ":SearchCommand" as SearchCommand LOGIC_COLOR | ||
participant ":CommandResult" as CommandResult LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":FieldsContainKeywordsPredicate" as FieldsContainKeywordsPredicate MODEL_COLOR | ||
participant ":Person" as Person MODEL_COLOR | ||
participant ":Model" as Model MODEL_COLOR | ||
end box | ||
|
||
[-> LogicManager : execute(input) | ||
activate LogicManager | ||
|
||
LogicManager -> ConnectUsParser : parseCommand(input) | ||
activate ConnectUsParser | ||
|
||
create SearchCommandParser | ||
ConnectUsParser -> SearchCommandParser++ | ||
return | ||
|
||
ConnectUsParser -> SearchCommandParser:parse(args) | ||
activate SearchCommandParser | ||
|
||
ref over SearchCommandParser | ||
Search Parse Args | ||
end | ||
|
||
create FieldsContainKeywordsPredicate | ||
SearchCommandParser -> FieldsContainKeywordsPredicate++ | ||
return e | ||
|
||
create SearchCommand | ||
SearchCommandParser -> SearchCommand++ | ||
|
||
return | ||
return searchCommand | ||
destroy SearchCommandParser | ||
return searchCommand | ||
|
||
LogicManager->SearchCommand : execute(model) | ||
activate SearchCommand | ||
|
||
SearchCommand -> Model : updateFilteredPersonList(fieldsContainKeywordsPredicate) | ||
activate Model | ||
return | ||
|
||
create CommandResult | ||
SearchCommand ->CommandResult++ | ||
return | ||
|
||
return commandResult | ||
return | ||
|
||
@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.