forked from nus-cs2103-AY1920S1/addressbook-level3
-
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.
- Loading branch information
1 parent
80704a0
commit 4fd650a
Showing
19 changed files
with
205 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
@startuml | ||
start | ||
:User types in a partial command; | ||
|
||
'Since the beta syntax does not support placing the condition outside the | ||
'diamond we place it as the true branch instead. | ||
|
||
if () then ([The command format is invalid]) | ||
:Error messaged shown; | ||
else ([Else]) | ||
if () then ([Input is a word but\n not command word]) | ||
:Similar command\n words is displayed; | ||
else if () then ([Input is a command word]) | ||
:Command usage\n is displayed; | ||
else ([Input is multiple words]) | ||
:Suggestions for command\n argument is displayed; | ||
endif | ||
endif | ||
:User presses TAB key; | ||
:Command suggestion is auto-completed by replacing the input; | ||
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,42 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam arrowThickness 1.1 | ||
skinparam arrowColor LOGIC_COLOR_T4 | ||
skinparam classBackgroundColor LOGIC_COLOR | ||
|
||
package Logic { | ||
|
||
package Prompter { | ||
Interface Prompter <<Interface>> | ||
Class WemePrompter | ||
Class XYZPrompter | ||
Class XYZCommandPrompter | ||
Class PrompterUtil | ||
Class CommandPrompt | ||
} | ||
Interface Logic <<Interface>> | ||
Class LogicManager | ||
} | ||
|
||
package Model{ | ||
Class HiddenModel #FFFFFF | ||
} | ||
|
||
Class HiddenOutside #FFFFFF | ||
HiddenOutside ..> Logic | ||
|
||
LogicManager .up.|> Logic | ||
LogicManager ..> WemePrompter | ||
|
||
XYZPrompter -up-|> WemePrompter | ||
XYZPrompter .down.> XYZCommandPrompter : creates > | ||
note right of XYZPrompter: XYZPrompter = MemePrompter, \nTemplatePrompter, \nImportPrompter, etc. | ||
XYZCommandPrompter ..> CommandPrompt : creates > | ||
note right of XYZCommandPrompter: XYZCommandPrompter = \n MemeAddCommandPrompter, \nTemplateEditCommandPrompter, \nLoadCommandPrompter, etc. | ||
XYZCommandPrompter ..|> Prompter | ||
XYZCommandPrompter ..> PrompterUtil | ||
LogicManager .down.> CommandPrompt : prompt > | ||
CommandPrompt .right.> Model | ||
|
||
LogicManager --> Model | ||
@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,63 @@ | ||
@startuml | ||
scale 1.5 | ||
!include style.puml | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":MemePrompter" as MemePrompter LOGIC_COLOR | ||
participant ":MemeAddCommandPrompter" as MemeAddCommandPrompter LOGIC_COLOR | ||
participant ":PrompterUtil" as PrompterUtil LOGIC_COLOR | ||
participant ":CommandPrompt" as CommandPrompt LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":Model" as Model MODEL_COLOR | ||
end box | ||
|
||
[-> LogicManager : execute("add p/") | ||
activate LogicManager | ||
|
||
LogicManager -> MemePrompter : promptCommand("add p/") | ||
activate MemePrompter | ||
|
||
create MemeAddCommandPrompter | ||
MemePrompter -> MemeAddCommandPrompter | ||
activate MemeAddCommandPrompter | ||
|
||
MemeAddCommandPrompter --> MemePrompter | ||
deactivate MemeAddCommandPrompter | ||
|
||
MemePrompter -> MemeAddCommandPrompter : prompt("p/") | ||
activate MemeAddCommandPrompter | ||
|
||
MemeAddCommandPrompter -> PrompterUtil : promptSimilarArguments("p/") | ||
activate PrompterUtil | ||
|
||
PrompterUtil -> Model : getRecords() | ||
activate Model | ||
|
||
Model --> PrompterUtil : records | ||
deactivate Model | ||
|
||
create CommandPrompt | ||
PrompterUtil -> CommandPrompt | ||
activate CommandPrompt | ||
|
||
CommandPrompt --> PrompterUtil | ||
deactivate CommandPrompt | ||
|
||
PrompterUtil --> MemeAddCommandPrompter : commandPrompt | ||
deactivate PrompterUtil | ||
|
||
MemeAddCommandPrompter --> MemePrompter : commandPrompt | ||
deactivate MemeAddCommandPrompter | ||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
MemeAddCommandPrompter -[hidden]-> MemePrompter | ||
destroy MemeAddCommandPrompter | ||
|
||
MemePrompter --> LogicManager : commandPrompt | ||
deactivate MemePrompter | ||
|
||
[<--LogicManager : commandPrompt | ||
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
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.
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
2 changes: 1 addition & 1 deletion
2
src/main/java/seedu/weme/model/Records.java → ...ava/seedu/weme/model/records/Records.java
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package seedu.weme.model; | ||
package seedu.weme.model.records; | ||
|
||
import java.awt.Color; | ||
import java.util.Set; | ||
|
2 changes: 1 addition & 1 deletion
2
...java/seedu/weme/model/RecordsManager.java → ...du/weme/model/records/RecordsManager.java
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package seedu.weme.model; | ||
package seedu.weme.model.records; | ||
|
||
import static java.util.Objects.requireNonNull; | ||
|
||
|
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