Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update DeveloperGuide with Switch Mode implementation #98

Conversation

chrystalquek
Copy link

No description provided.

@chrystalquek chrystalquek added the documentation Improvements or additions to documentation label Oct 22, 2020
@chrystalquek chrystalquek self-assigned this Oct 22, 2020
@codecov-io
Copy link

Codecov Report

Merging #98 into master will decrease coverage by 0.20%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##             master      #98      +/-   ##
============================================
- Coverage     50.51%   50.30%   -0.21%     
- Complexity      609      610       +1     
============================================
  Files           141      141              
  Lines          2647     2664      +17     
  Branches        303      307       +4     
============================================
+ Hits           1337     1340       +3     
- Misses         1213     1224      +11     
- Partials         97      100       +3     
Impacted Files Coverage Δ Complexity Δ
...du/address/logic/commands/meeting/EditCommand.java 82.27% <0.00%> (-3.06%) 12.00% <0.00%> (ø%)
...a/seedu/address/model/meeting/meeting/Meeting.java 69.64% <0.00%> (-2.91%) 16.00% <0.00%> (+1.00%) ⬇️
...du/address/storage/meeting/JsonAdaptedMeeting.java 0.00% <0.00%> (ø) 0.00% <0.00%> (ø%)
...address/logic/parser/meeting/AddCommandParser.java 0.00% <0.00%> (ø) 0.00% <0.00%> (ø%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5b14f70...63d4917. Read the comment docs.


#### Implementation

Productiv can be in different modes, such as dashboard, deliverable, meeting and contact mode.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very minor, but maybe can use 'specifically' or 'different modes: dashboard, deliverable,...'

![SwitchModeSequenceDiagram](images/SwitchModeSequenceDiagram.png)
Figure <?> Switch Command Sequence Diagram (In Progress)

The user input is passed to LogicModeManager.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LogicModeManager

* Cons: May violate Single Responsibility Principle.

* **Alternative 2:** Store mode in a `LogicModeManager`
* Pros: Seems to follow the Single Responsibility Principle better.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe can be assertive and say "Aligns with / Follows the Single Responsibility Principle better"


* **Alternative 2:** Store mode in a `LogicModeManager`
* Pros: Seems to follow the Single Responsibility Principle better.
* Cons: `LogicModeManager` would need to have references to the other logic managers.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure, but LogicManagers ?

SwitchCommandParser --> ModeParser
deactivate SwitchCommandParser

ModeParser --> LogicModeManager : s

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe can use a more descriptive name than 's'?

LogicModeManager --> MainWindow : result
deactivate LogicModeManager

MainWindow -> MainWindow: switchMode(mode)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure, but is mode the same as result?

@chrystalquek chrystalquek merged commit 83f0552 into AY2021S1-CS2103T-F11-2:master Oct 22, 2020
@chrystalquek chrystalquek changed the title Update DevloperGuide with Switch Mode implementation Update DeveloperGuide with Switch Mode implementation Nov 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants