-
Notifications
You must be signed in to change notification settings - Fork 548
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #236 from nguyiyang/bugfix
Fix bugs and update documentation
- Loading branch information
Showing
34 changed files
with
304 additions
and
196 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 |
---|---|---|
|
@@ -57,7 +57,7 @@ We hope you find this User Guide helpful in using ClassMATE! | |
1. Copy the file to the folder you want to use as the _home folder_ for your ClassMATE. | ||
1. Double-click the file to start the app. The GUI similar to the below should appear in a few seconds. Note how the app contains some sample data.<br> | ||
 | ||
1. Type the command in the **Command-Line Input** and press Enter to execute it. e.g. typing **`help`** and pressing Enter will open the help window. | ||
1. Type the command in the **Command-Line Input** and press Enter to execute it. e.g. typing **`help`** and pressing Enter will open the help window. | ||
Check out some examples in the [Tutorial](#CLI Tutorial) | ||
1. Refer to the [Features](#Features) below for details of each command. | ||
|
||
|
@@ -222,7 +222,7 @@ Examples: | |
|
||
## Student Commands | ||
|
||
This part of the guide covers all the commands you can use to manage student information! | ||
This part of the guide covers all the commands you can use to manage student information! | ||
|
||
These features include the ability to: | ||
1. Add new students | ||
|
@@ -394,7 +394,7 @@ Examples: | |
|
||
## Tutorial Class Commands | ||
|
||
This section covers all the commands you can use to manage information pertaining to tutorial classes! | ||
This section covers all the commands you can use to manage information pertaining to tutorial classes! | ||
|
||
Features include the ability to: | ||
1. Add a tutorial class | ||
|
@@ -510,7 +510,7 @@ Entering format: `addcg gn/GROUP_NUMBER c/CLASS_CODE type/GROUP_TYPE` | |
|
||
* The class must have already been added to ClassMATE first. If you are unsure, you can refer to | ||
[Adding a Tutorial Class](#adding-a-tutorial-class) | ||
|
||
* Tutorial groups are identified by GROUP_NUMBER, GROUP_TYPE and CLASS_CODE. This means that | ||
any two tutorial groups are identical if all three fields are identical, which is not allowed. | ||
|
||
|
@@ -581,8 +581,8 @@ Only `OP1` and `OP2` are accepted as Group Types. | |
|
||
|
||
Example: | ||
* `liststu`shows that Betsy is a student in class G06 with Index 1. | ||
`deletesg 1 g/A c/G06 type/OP1` then removes Betsy from OP1 Group A in class G06 | ||
* `liststu c/G06`shows that Betsy is a student in class G06 with Index 1. | ||
`deletesg 1 gn/1 c/G06 type/OP1` then removes Betsy from OP1 Group 1 in class G06 | ||
|
||
### Clearing all data : `clear` | ||
|
||
|
@@ -628,8 +628,8 @@ If your changes to the data file makes its format invalid, ClassMATE will discar | |
Action | Format, Examples | ||
--------|------------------ | ||
**Help** | `help` | ||
**Add student** | `addstu n/NAME p/PHONE_NUMBER e/EMAIL a/ADDRESS c/CLASS_CODE [t/TAG]…`<br> e.g., `addstu n/James Ho p/22224444 e/[email protected] a/123, Clementi Rd, 1234665 c/G01 t/attentive` | ||
**Edit student** | `editstu INDEX [n/NAME] [p/PHONE_NUMBER] [e/EMAIL] [a/ADDRESS] [c/CLASS_CODE] [t/TAG]…`<br> e.g., `editstu 2 n/James Lee e/[email protected]` | ||
**Add student** | `addstu n/NAME p/PHONE_NUMBER e/EMAIL a/ADDRESS c/CLASS_CODE [t/TAG]…`<br> e.g., `addstu n/James Ho p/22224444 e/[email protected] a/123, Clementi Rd, 1234665 c/G01 t/attentive` | ||
**Edit student** | `editstu INDEX [n/NAME] [p/PHONE_NUMBER] [e/EMAIL] [a/ADDRESS] [c/CLASS_CODE] [t/TAG]…`<br> e.g., `editstu 2 n/James Lee e/[email protected]` | ||
**View student** | `viewstu INDEX`<br> e.g., `liststu` followed by `viewstu 2` | ||
**Find student** | `findstu KEYWORD [MORE_KEYWORDS]`<br> e.g., `findstu John` | ||
**Delete student** | `deletestu INDEX`<br> e.g., `liststu` followed by `deletestu 3` | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,130 +1,47 @@ | ||
@startuml | ||
!include style.puml | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant AddGroupCommand as AddGroupCommand LOGIC_COLOR | ||
participant "**r:CommandResult**" as CommandResult LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant "**model:ModelManager**" as ModelManager MODEL_COLOR | ||
participant "**classmate:Classmate**" as Classmate MODEL_COLOR | ||
participant "**tutorialClasses:UniqueTutorialClassList**" as UniqueTutorialClassList MODEL_COLOR | ||
participant TutorialClass as TutorialClass MODEL_COLOR | ||
participant UniqueTutorialGroupList as UniqueTutorialGroupList MODEL_COLOR | ||
participant "**:UniqueTutorialClassList**" as UniqueTutorialClassList MODEL_COLOR | ||
participant "<<class>>\n**TutorialClass**" as StaticTutorialClass MODEL_COLOR | ||
participant ":**TutorialClass**" as TutorialClass MODEL_COLOR | ||
participant ":**UniqueTutorialGroupList**" as UniqueTutorialGroupList MODEL_COLOR | ||
end box | ||
|
||
[-> AddGroupCommand : ""execute(m)"" | ||
activate AddGroupCommand | ||
|
||
AddGroupCommand -> ModelManager : ""hasTutorialClass(tc)"" | ||
activate ModelManager | ||
|
||
ModelManager -> Classmate : ""hasTutorialClass(tc)"" | ||
activate Classmate | ||
|
||
Classmate -> UniqueTutorialClassList : ""contains(tc)"" | ||
activate UniqueTutorialClassList | ||
|
||
UniqueTutorialClassList -> TutorialClass : ""check through tutorial class list"" | ||
activate TutorialClass | ||
|
||
[-> UniqueTutorialClassList : ""contains(tc)"" | ||
|
||
note right | ||
""tc"" is the TutorialClass | ||
that is to be added | ||
to ClassMate | ||
that the TutorialGroup | ||
being added to ClassMate | ||
belongs to | ||
end note | ||
|
||
TutorialClass --> UniqueTutorialClassList | ||
deactivate TutorialClass | ||
|
||
UniqueTutorialClassList --> Classmate | ||
deactivate UniqueTutorialClassList | ||
|
||
Classmate --> ModelManager | ||
deactivate Classmate | ||
|
||
ModelManager --> AddGroupCommand | ||
deactivate | ||
|
||
AddGroupCommand -> ModelManager : ""hasTutorialGroup(tg)"" | ||
activate ModelManager | ||
|
||
ModelManager -> Classmate : ""hasTutorialGroup(tg)"" | ||
activate Classmate | ||
|
||
Classmate -> UniqueTutorialClassList : ""contains(tg)"" | ||
activate UniqueTutorialClassList | ||
|
||
UniqueTutorialClassList -> TutorialClass : ""getClassCode(tg)"" | ||
activate TutorialClass | ||
UniqueTutorialClassList -> TutorialClass : ""createTestTutorialClass(tc)"" | ||
UniqueTutorialClassList -> TutorialClass : ""check for matching tutorial class"" | ||
UniqueTutorialClassList -> TutorialClass : ""getTutorialGroups()"" | ||
|
||
TutorialClass --> UniqueTutorialClassList | ||
deactivate TutorialClass | ||
[-> UniqueTutorialClassList : ""contains(tg)"" | ||
|
||
ref over UniqueTutorialClassList, StaticTutorialClass, TutorialClass | ||
get tutorial groups | ||
end ref | ||
|
||
UniqueTutorialClassList -> UniqueTutorialGroupList : ""check if tutorial group exists"" | ||
UniqueTutorialClassList -> UniqueTutorialGroupList : ""contains(tg)"" | ||
activate UniqueTutorialGroupList | ||
|
||
UniqueTutorialGroupList --> UniqueTutorialClassList | ||
deactivate UniqueTutorialGroupList | ||
|
||
UniqueTutorialClassList --> Classmate | ||
deactivate UniqueTutorialClassList | ||
[-> UniqueTutorialClassList : ""add(tg)"" | ||
|
||
Classmate --> ModelManager | ||
deactivate Classmate | ||
ref over UniqueTutorialClassList, StaticTutorialClass, TutorialClass | ||
get tutorial groups | ||
end ref | ||
|
||
ModelManager --> AddGroupCommand | ||
deactivate | ||
|
||
AddGroupCommand -> ModelManager : ""addTutorialGroup(tc)"" | ||
activate ModelManager | ||
|
||
ModelManager -> Classmate : ""addTutorialGroup(tc)"" | ||
activate Classmate | ||
|
||
Classmate -> UniqueTutorialClassList : ""add(tg)"" | ||
activate UniqueTutorialClassList | ||
|
||
UniqueTutorialClassList -> TutorialClass : ""getClassCode(tg)"" | ||
activate TutorialClass | ||
UniqueTutorialClassList -> TutorialClass : ""createTestTutorialClass(tc)"" | ||
UniqueTutorialClassList -> TutorialClass : ""check for matching tutorial class"" | ||
UniqueTutorialClassList -> TutorialClass : ""getTutorialGroups()"" | ||
|
||
TutorialClass --> UniqueTutorialClassList | ||
deactivate TutorialClass | ||
|
||
UniqueTutorialClassList -> UniqueTutorialGroupList : ""add tutorial group"" | ||
UniqueTutorialClassList -> UniqueTutorialGroupList : ""add(tg))"" | ||
activate UniqueTutorialGroupList | ||
|
||
UniqueTutorialGroupList --> UniqueTutorialClassList | ||
deactivate UniqueTutorialGroupList | ||
|
||
UniqueTutorialClassList --> Classmate | ||
deactivate UniqueTutorialClassList | ||
|
||
Classmate --> ModelManager | ||
deactivate Classmate | ||
|
||
ModelManager --> AddGroupCommand | ||
deactivate | ||
|
||
create CommandResult | ||
AddGroupCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> AddGroupCommand : ""r"" | ||
deactivate CommandResult | ||
|
||
[<-- AddGroupCommand : ""r"" | ||
deactivate AddGroupCommand | ||
|
||
AddGroupCommand -[hidden]> CommandResult | ||
destroy AddGroupCommand | ||
|
||
@enduml |
Oops, something went wrong.