forked from nus-cs2113-AY1920S2/tp
-
Notifications
You must be signed in to change notification settings - Fork 5
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 #170 from MeLoveCarbs/DevGuideUpdate
Dev guide update
- Loading branch information
Showing
10 changed files
with
135 additions
and
44 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
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.
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 |
---|---|---|
@@ -1,22 +1,24 @@ | ||
package common; | ||
|
||
import java.util.Map; | ||
import java.util.HashMap; | ||
|
||
/** | ||
* Maps the lessonType full name into its coded form to used by NUSMODS link. | ||
* Referenced from https://github.com/raynoldng/nusmods-planner/blob/master/nusmodsplanner/definitions.py | ||
*/ | ||
public class LessonType { | ||
public static final Map<String, String> lessonType = Map.ofEntries( | ||
Map.entry("Packaged Lecture", "PLEC"), | ||
Map.entry("Packaged Tutorial", "PTUT"), | ||
Map.entry("Design Lecture", "DLEC"), | ||
Map.entry("Laboratory", "LAB"), | ||
Map.entry("Lecture", "LEC"), | ||
Map.entry("Recitation", "REC"), | ||
Map.entry("Sectional Teaching", "SEC"), | ||
Map.entry("Seminar-style Module Class", "SEM"), | ||
Map.entry("Tutorial", "TUT"), | ||
Map.entry("Tutorial Type 2", "TUT2") | ||
); | ||
public static final HashMap<String, String> lessonType = new HashMap<>(); | ||
|
||
static { | ||
lessonType.put("Packaged Lecture", "PLEC"); | ||
lessonType.put("Packaged Tutorial", "PTUT"); | ||
lessonType.put("Design Lecture", "DLEC"); | ||
lessonType.put("Laboratory", "LAB"); | ||
lessonType.put("Lecture", "LEC"); | ||
lessonType.put("Recitation", "REC"); | ||
lessonType.put("Sectional Teaching", "SEC"); | ||
lessonType.put("Seminar-style Module Class", "SEM"); | ||
lessonType.put("Tutorial", "TUT"); | ||
lessonType.put("Tutorial Type 2", "TUT2"); | ||
} | ||
} |
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