Fakultas Ilmu Komputer UI

Commit dd6b1f35 authored by hazlazuardi's avatar hazlazuardi
Browse files

Create timetable works not saved into csv

parent 2dc133cd
Pipeline #81681 passed with stages
in 3 minutes and 22 seconds
**/.gradle/*
......@@ -28,3 +28,5 @@ st,re,rpl,daa
st,re,rpl,adpro
st,rere,rpl,daa
st,rere,rpl,daa
st,hola,rpl
st,re,rpl,adpro
Softeng/Group3/SiJadwal/utility/InputReader.java
Softeng.Group3.SiJadwal.utility.InputReader
Softeng/Group3/SiJadwal/repository/CSVUser.java
Softeng.Group3.SiJadwal.repository.CSVUser
Softeng/Group3/SiJadwal/Main.java
Softeng.Group3.SiJadwal.Main
Softeng/Group3/SiJadwal/repository/UserList.java
Softeng.Group3.SiJadwal.repository.UserList
Softeng/Group3/SiJadwal/actor/RoleType.java
Softeng.Group3.SiJadwal.actor.RoleType
Softeng.Group3.SiJadwal.actor.RoleType$1
Softeng/Group3/SiJadwal/repository/CSVCourse.java
Softeng.Group3.SiJadwal.repository.CSVCourse
Softeng/Group3/SiJadwal/actor/TeachingAssistant.java
Softeng.Group3.SiJadwal.actor.TeachingAssistant
Softeng/Group3/SiJadwal/repository/TimetableList.java
Softeng.Group3.SiJadwal.repository.TimetableList
Softeng/Group3/SiJadwal/repository/CSVUser.java
Softeng.Group3.SiJadwal.repository.CSVUser
Softeng/Group3/SiJadwal/actor/Student.java
Softeng.Group3.SiJadwal.actor.Student
Softeng/Group3/SiJadwal/model/Course.java
Softeng.Group3.SiJadwal.model.Course
Softeng/Group3/SiJadwal/repository/CourseList.java
Softeng.Group3.SiJadwal.repository.CourseList
Softeng/Group3/SiJadwal/repository/CSVCourse.java
Softeng.Group3.SiJadwal.repository.CSVCourse
Softeng/Group3/SiJadwal/actor/Role.java
Softeng.Group3.SiJadwal.actor.Role
Softeng/Group3/SiJadwal/Main.java
Softeng.Group3.SiJadwal.Main
Softeng/Group3/SiJadwal/actor/User.java
Softeng.Group3.SiJadwal.actor.User
Softeng.Group3.SiJadwal.actor.User$1
Softeng/Group3/SiJadwal/repository/CSVTimetable.java
Softeng.Group3.SiJadwal.repository.CSVTimetable
Softeng/Group3/SiJadwal/repository/CSVOperator.java
Softeng.Group3.SiJadwal.repository.CSVOperator
Softeng/Group3/SiJadwal/repository/AssignmentList.java
Softeng.Group3.SiJadwal.repository.AssignmentList
Softeng/Group3/SiJadwal/actor/Admin.java
......@@ -38,3 +27,14 @@ Softeng/Group3/SiJadwal/model/Assignment.java
Softeng.Group3.SiJadwal.model.Assignment
Softeng/Group3/SiJadwal/model/Timetable.java
Softeng.Group3.SiJadwal.model.Timetable
Softeng/Group3/SiJadwal/actor/TeachingAssistant.java
Softeng.Group3.SiJadwal.actor.TeachingAssistant
Softeng/Group3/SiJadwal/actor/RoleType.java
Softeng.Group3.SiJadwal.actor.RoleType
Softeng.Group3.SiJadwal.actor.RoleType$1
Softeng/Group3/SiJadwal/repository/UserList.java
Softeng.Group3.SiJadwal.repository.UserList
Softeng/Group3/SiJadwal/repository/CSVOperator.java
Softeng.Group3.SiJadwal.repository.CSVOperator
Softeng/Group3/SiJadwal/utility/InputReader.java
Softeng.Group3.SiJadwal.utility.InputReader
......@@ -44,6 +44,17 @@ public class Student extends Role {
return newTimetable;
}
private List<Assignment> retrieveAllAssignment() {
try {
assignmentList.listToString(assignmentList.getAssignmentList());
return assignmentList.getAssignmentList();
} catch (NullPointerException e) {
System.out.println("No Assignment");
return null;
}
}
// private Timetable updateTimetable(String element) {
// try {
// Timetable toUpdate = timetableList.getTimetable(timetableName, Main.currentUser);
......@@ -202,19 +213,21 @@ public class Student extends Role {
break;
case 12:
try {
assignmentList.listToString(assignmentList.getAssignmentList());
break;
} catch (NullPointerException e) {
System.out.println("No Assignment");
break;
}
retrieveAllAssignment();
break;
case 13:
System.out.println("Pick the assignment that you want to validate:");
retrieveAllAssignment();
String nameToVaidate = in.next();
String courseToValidate = in.next();
default:
}
}
public HashMap<String, Course> listToHashmap(List<Course> list){
HashMap<String, Course> hashMap = new HashMap<>();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment