forked from AY2324S2-CS2103-F15-2/tp
-
Notifications
You must be signed in to change notification settings - Fork 0
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/AY2324S2-CS2103-F15-2/tp
# Conflicts: # docs/images/BetterModelClassDiagram.png # docs/images/ModelClassDiagram.png
- Loading branch information
Showing
59 changed files
with
983 additions
and
199 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,14 @@ | ||
@startuml | ||
skin rose | ||
skinparam ActivityFontSize 15 | ||
skinparam ArrowFontSize 12 | ||
start | ||
:User executes filter command; | ||
|
||
'Since the beta syntax does not support placing the condition outside the | ||
'diamond we place it as the true branch instead. | ||
|
||
:System updates filter predicate; | ||
:Returns filtered student list; | ||
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,55 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam ArrowFontStyle plain | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":AddressBookParser" as AddressBookParser LOGIC_COLOR | ||
participant ":FilterCommand" as FilterCommand LOGIC_COLOR | ||
participant ":GradeSubjectFilterPredicate" as GradeSubjectFilterPredicate LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":Model" as Model MODEL_COLOR | ||
end box | ||
[-> LogicManager : execute(filter g/...) | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand() | ||
activate AddressBookParser | ||
|
||
create GradeSubjectFilterPredicate | ||
AddressBookParser -> GradeSubjectFilterPredicate | ||
activate GradeSubjectFilterPredicate | ||
|
||
GradeSubjectFilterPredicate --> AddressBookParser | ||
deactivate GradeSubjectFilterPredicate | ||
|
||
create FilterCommand | ||
AddressBookParser -> FilterCommand | ||
activate FilterCommand | ||
|
||
FilterCommand --> AddressBookParser | ||
deactivate FilterCommand | ||
|
||
AddressBookParser --> LogicManager | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> FilterCommand : execute() | ||
activate FilterCommand | ||
|
||
FilterCommand -> Model : updateFilteredPersonList(predicate) | ||
activate Model | ||
|
||
Model --> FilterCommand | ||
deactivate Model | ||
|
||
FilterCommand --> LogicManager : commandResult | ||
deactivate FilterCommand | ||
FilterCommand -[hidden]-> LogicManager : commandResult | ||
destroy FilterCommand | ||
destroy GradeSubjectFilterPredicate | ||
|
||
[<--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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam ArrowFontStyle plain | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":Model" as Model MODEL_COLOR | ||
end box | ||
|
||
[-> Model : updateFilteredPersonList(predicate) | ||
activate Model | ||
|
||
Model -> Model :setPredicate(predicate) | ||
|
||
[<-- Model | ||
deactivate 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,18 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam ClassFontColor #000000 | ||
skinparam ClassBorderColor #000000 | ||
skinparam ClassBackgroundColor #FFFFAA | ||
|
||
title FilteredList | ||
|
||
package Predicates { | ||
class State1 as "<u>Model.PREDICATE_SHOW_ALL_PERSONS</u>" | ||
class State2 as "<u>:GradeSubjectFilterPredicate</u>" | ||
} | ||
State1 -[hidden]right-> State2 | ||
hide State2 | ||
|
||
class Pointer as "Current State" #FFFFFF | ||
Pointer -up-> State1 | ||
@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,17 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam ClassFontColor #000000 | ||
skinparam ClassBorderColor #000000 | ||
skinparam ClassBackgroundColor #FFFFAA | ||
|
||
title FilteredList | ||
|
||
package Predicates { | ||
class State1 as "<u>Model.PREDICATE_SHOW_ALL_PERSONS</u>" | ||
class State2 as "<u>:GradeSubjectFilterPredicate</u>" | ||
} | ||
State1 -[hidden]right-> State2 | ||
|
||
class Pointer as "Current State" #FFFFFF | ||
Pointer -up-> State2 | ||
@end |
Oops, something went wrong.