Skip to content

Commit

Permalink
Merge pull request #254 from starchypotatocode/branch-finalise-dg
Browse files Browse the repository at this point in the history
Fix missing change
  • Loading branch information
keithxun authored Nov 12, 2024
2 parents a0ccb64 + fce88ec commit b9d5ec2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/DeveloperGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ The sequence diagram below illustrates the interactions within the `Logic` compo

How the `Logic` component works:

1. When `Logic` is called upon to execute a command, the API call is passed to an `Parser` object, which in turn creates a parser that matches the command (e.g. `DeleteMemberCommandParser`) and uses it to parse the command.
2. This results in a `Command` object (more precisely, an object of one of its subclasses e.g. `DeleteCommand`) being created, which is then executed by the `LogicManager`.
1. When `Logic` is called upon to execute a command, the API call is passed to an `HallPointerParser` object, which in turn creates a parser that matches the command (e.g. `DeleteMemberCommandParser`) and uses it to parse the command.
2. This results in a `Command` object (more precisely, an object of one of its subclasses e.g. `DeleteMemberCommand`) being created, which is then executed by the `LogicManager`.
3. The `Command` communicates with the `Model` when it is executed (e.g. to delete a member).<br>
Note that although this is shown as a single step in the diagram above (for simplicity), in the code it can take several interactions (between the command object and the `Model`) to achieve.
4. The result of the command execution is encapsulated as a `CommandResult` object which is then returned by `Logic`.
Expand Down

0 comments on commit b9d5ec2

Please sign in to comment.