-
Notifications
You must be signed in to change notification settings - Fork 7
Home
robertoguazon edited this page Sep 18, 2016
·
12 revisions
Listed below are important parts of the system that are already finished and only needs small fixes or improvemments:
- Lesson - base class for all types of lessons and exercises
- TextLesson
- VideoLesson
- Exercise - base class for all type of exercises
- QuizExercise
- Exam - similar to and extends quizzes, nothing new but separated for future enhancements
- PracticalExercise - base class for all types of practical exercises
- PracticalPrintExercise - needs to print a specific output using System.out.println();
- PracticalReturnExercise - needs to make a method that accepts and returns specific parameters and values respectively
- VideoPracticalExercise - mix of Video Lesson and Practical Exercise
- User - with history (keeps track of lesson views, score of exercises, and contains methods for score percentage)
##Databases
-you can get the lesson(s), exercise(s), exam(s) or etc. from each specific databases using the following:
-
LessonDatabase.getTextLessonUsingLID("lid627925056887413");
returns a match (unique id) -
LessonDatabase.getTextLessonUsingTitle("sample test");
- returns a match (unique title) -
LessonDatabase.getTextLessonsUsingTagsExactly("sample,test,");
- returns an ArrayList of matches (matches all tags) -
LessonDatabase.getTextLessonsUsingTagsContains("sample", "test");
- returns an ArrayList of matches (contains some of the tags)
-you can store the lesson, exercise, exam or etc. from each specific databases using the following:
-
LessonDatabase.storeData(textLesson);
orLessonDatabase.storeData(videoLesson);
-
ExerciseDatabase.storeData(quizExercise);
orExerciseDatabase.storeData(practicalPrintExercise);
- you can store exercises to lesson database since Exercise.class extends Lesson.class
Controllers - class with static methods for working on the controllers
-sample codes below using Controllers.class
-
Controllers.loadAll();
- loads all controllers, must be called before using any methods in this class -
Controllers.getNode(ControllerType.TEXT_LESSON_VIEWER, LessonDatabase.getTextLessonUsingLID("lid627925056887413"));
- getting parent node -
Controllers.view(ControllerType.TEXT_LESSON_VIEWER, parentNode, lesson[can be null]);
- attaching the node to parentNode. Also, use null only if its a maker and not a viewer as this will set the lesson to the specified viewer.
-by the way the links below are directed to their controllers
-
Lesson Maker - for making text and video lessons
-
Practical Exercise Maker - for making PracticalPrintExercise and PracticalReturnExercise
-
Quiz Exercise Maker
-
Video Practical Exercise Maker
-
Text Lesson Viewer
-
Video Lesson Viewer
-
Quiz Exercise Viewer
-
Practical Print Exercise Viewer
-
Practical Return Exercise Viewer
- Video Practical Exercise Viewer - no controllers are needed for this one. However Video Lesson Viewer controller and Practical Exercise controllers are used.
-not finished, sample only