-
Notifications
You must be signed in to change notification settings - Fork 712
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new content.
- Loading branch information
Showing
9 changed files
with
261 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam ArrowFontStyle plain | ||
skinparam ParticipantBackgroundColor LOGIC_COLOR | ||
|
||
title Clear Listings Sequence Diagram | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":EzstatesParser" as EzstatesParser LOGIC_COLOR | ||
participant "c:ClearListingsCommand" as ClearListingsCommand LOGIC_COLOR | ||
participant "r:CommandResult" as CommandResult LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant "m:Model" as Model MODEL_COLOR | ||
participant "l:Listings" as Listings MODEL_COLOR | ||
end box | ||
|
||
[-> LogicManager : execute("clearlistings") | ||
activate LogicManager | ||
|
||
LogicManager -> EzstatesParser : parseCommand("clearlistings") | ||
activate EzstatesParser | ||
|
||
EzstatesParser --> LogicManager : c | ||
deactivate EzstatesParser | ||
|
||
LogicManager -> ClearListingsCommand : execute(m:Model) | ||
activate ClearListingsCommand | ||
|
||
' Create a new empty Listings instance | ||
create Listings | ||
ClearListingsCommand -> Listings | ||
activate Listings | ||
Listings --> ClearListingsCommand : l | ||
deactivate Listings | ||
|
||
' Set the new Listings in the Model | ||
ClearListingsCommand -> Model : setListings(l:Listings) | ||
activate Model | ||
Model --> ClearListingsCommand | ||
deactivate Model | ||
|
||
' Create a CommandResult to confirm the clear operation | ||
create CommandResult | ||
ClearListingsCommand -> CommandResult | ||
activate CommandResult | ||
CommandResult --> ClearListingsCommand | ||
deactivate CommandResult | ||
|
||
ClearListingsCommand --> LogicManager : r | ||
deactivate ClearListingsCommand | ||
|
||
[<-- LogicManager : r | ||
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,77 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam ArrowFontStyle plain | ||
skinparam ParticipantBackgroundColor LOGIC_COLOR | ||
|
||
title Find Listing Sequence Diagram | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":EzstatesParser" as EzstatesParser LOGIC_COLOR | ||
participant ":FindListingCommandParser" as FindListingCommandParser LOGIC_COLOR | ||
participant "f:FindListingCommand" as FindListingCommand LOGIC_COLOR | ||
participant "r:CommandResult" as CommandResult LOGIC_COLOR | ||
end box | ||
|
||
note left of LogicManager | ||
cmd: | ||
"findlisting mansion villa" | ||
keywords: | ||
"mansion villa" | ||
end note | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant "m:Model" as Model MODEL_COLOR | ||
end box | ||
|
||
[-> LogicManager : execute(cmd) | ||
activate LogicManager | ||
|
||
LogicManager -> EzstatesParser : parseCommand(cmd) | ||
activate EzstatesParser | ||
|
||
create FindListingCommandParser | ||
EzstatesParser -> FindListingCommandParser | ||
activate FindListingCommandParser | ||
|
||
FindListingCommandParser --> EzstatesParser | ||
deactivate FindListingCommandParser | ||
|
||
EzstatesParser -> FindListingCommandParser : parse(keywords) | ||
activate FindListingCommandParser | ||
|
||
create FindListingCommand | ||
FindListingCommandParser -> FindListingCommand : | ||
activate FindListingCommand | ||
FindListingCommand --> FindListingCommandParser | ||
deactivate FindListingCommand | ||
|
||
FindListingCommandParser --> EzstatesParser : f | ||
deactivate FindListingCommandParser | ||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
FindListingCommandParser -[hidden]-> EzstatesParser | ||
destroy FindListingCommandParser | ||
|
||
EzstatesParser --> LogicManager : f | ||
deactivate EzstatesParser | ||
|
||
LogicManager -> FindListingCommand : execute(m:Model) | ||
activate FindListingCommand | ||
|
||
FindListingCommand -> Model : updateFilteredListingList(predicate) | ||
activate Model | ||
Model --> FindListingCommand | ||
deactivate Model | ||
|
||
create CommandResult | ||
FindListingCommand -> CommandResult | ||
activate CommandResult | ||
CommandResult --> FindListingCommand | ||
deactivate CommandResult | ||
|
||
FindListingCommand --> LogicManager : r | ||
deactivate FindListingCommand | ||
|
||
[<-- LogicManager : r | ||
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,51 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam ArrowFontStyle plain | ||
skinparam ParticipantBackgroundColor LOGIC_COLOR | ||
|
||
title Show Listings Sequence Diagram | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":EzstatesParser" as EzstatesParser LOGIC_COLOR | ||
participant "s:ShowListingsCommand" as ShowListingsCommand LOGIC_COLOR | ||
participant "r:CommandResult" as CommandResult LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant "m:Model" as Model MODEL_COLOR | ||
end box | ||
|
||
[-> LogicManager : execute("showlistings") | ||
activate LogicManager | ||
|
||
LogicManager -> EzstatesParser : parseCommand(cmd) | ||
activate EzstatesParser | ||
|
||
EzstatesParser --> LogicManager : | ||
deactivate EzstatesParser | ||
|
||
LogicManager -> ShowListingsCommand : execute(m:Model) | ||
activate ShowListingsCommand | ||
|
||
ShowListingsCommand -> Model : updateFilteredListingList(PREDICATE_SHOW_ALL_LISTINGS) | ||
activate Model | ||
Model --> ShowListingsCommand | ||
deactivate Model | ||
|
||
alt list is empty | ||
ShowListingsCommand -> LogicManager | ||
deactivate ShowListingsCommand | ||
else else | ||
create CommandResult | ||
ShowListingsCommand -> CommandResult | ||
activate CommandResult | ||
CommandResult --> ShowListingsCommand | ||
deactivate CommandResult | ||
ShowListingsCommand --> LogicManager : r | ||
deactivate ShowListingsCommand | ||
end | ||
|
||
[<-- LogicManager : r | ||
deactivate LogicManager | ||
@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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.