forked from nus-cs2113-AY2425S1/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.
- Loading branch information
Showing
30 changed files
with
138 additions
and
153 deletions.
There are no files selected for viewing
File renamed without changes.
17 changes: 0 additions & 17 deletions
17
src/main/java/TutorLink/command/student_command/StudentCommand.java
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
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
8 changes: 3 additions & 5 deletions
8
...ignment_command/AddAssignmentCommand.java → ...signmentcommand/AddAssignmentCommand.java
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
6 changes: 2 additions & 4 deletions
6
...assignment_command/AssignmentCommand.java → .../assignmentcommand/AssignmentCommand.java
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
8 changes: 3 additions & 5 deletions
8
...ment_command/DeleteAssignmentCommand.java → ...nmentcommand/DeleteAssignmentCommand.java
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,18 +1,16 @@ | ||
package TutorLink.command.assignment_command; | ||
package TutorLink.commandpackage.AssignmentCommand; | ||
|
||
import TutorLink.list.List; | ||
import TutorLink.listpackage.ItemList; | ||
import tutorlink.assignment.Assignment; | ||
|
||
import java.util.ArrayList; | ||
|
||
public class DeleteAssignmentCommand extends AssignmentCommand{ | ||
public DeleteAssignmentCommand(Assignment assignment) { | ||
super(assignment); | ||
} | ||
|
||
|
||
@Override | ||
public void execute(List list) { | ||
public void execute(ItemList list) { | ||
|
||
} | ||
} |
8 changes: 3 additions & 5 deletions
8
...endance_command/AddAttendanceCommand.java → ...tendancecommand/AddAttendanceCommand.java
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,18 +1,16 @@ | ||
package TutorLink.command.attendance_command; | ||
package TutorLink.commandpackage.AttendanceCommand; | ||
|
||
import TutorLink.list.List; | ||
import TutorLink.listpackage.ItemList; | ||
import tutorlink.attendance.Attendance; | ||
|
||
import java.util.ArrayList; | ||
|
||
public class AddAttendanceCommand extends AttendanceCommand{ | ||
|
||
public AddAttendanceCommand(Attendance attendance) { | ||
super(attendance); | ||
} | ||
|
||
@Override | ||
public void execute(List list) { | ||
public void execute(ItemList list) { | ||
|
||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
...attendance_command/AttendanceCommand.java → .../attendancecommand/AttendanceCommand.java
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
8 changes: 3 additions & 5 deletions
8
...ance_command/DeleteAttendanceCommand.java → ...dancecommand/DeleteAttendanceCommand.java
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,18 +1,16 @@ | ||
package TutorLink.command.attendance_command; | ||
package TutorLink.commandpackage.AttendanceCommand; | ||
|
||
import TutorLink.list.List; | ||
import tutorlink.listpackage.ItemList; | ||
import tutorlink.attendance.Attendance; | ||
|
||
import java.util.ArrayList; | ||
|
||
public class DeleteAttendanceCommand extends AttendanceCommand{ | ||
|
||
public DeleteAttendanceCommand(Attendance attendance) { | ||
super(attendance); | ||
} | ||
|
||
@Override | ||
public void execute(List list) { | ||
public void execute(ItemList list) { | ||
|
||
} | ||
} |
14 changes: 6 additions & 8 deletions
14
...nd/student_command/addStudentCommand.java → ...age/studentcommand/AddStudentCommand.java
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
13 changes: 7 additions & 6 deletions
13
...student_command/DeleteStudentCommand.java → .../studentcommand/DeleteStudentCommand.java
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
17 changes: 17 additions & 0 deletions
17
src/main/java/tutorlink/commandpackage/studentcommand/StudentCommand.java
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package TutorLink.commandpackage.StudentCommand; | ||
|
||
import TutorLink.commandpackage.Command; | ||
import TutorLink.studentpackage.StudentClass; | ||
|
||
public abstract class StudentCommand extends Command { | ||
protected StudentClass student; | ||
|
||
public StudentCommand(StudentClass student) { | ||
this.student = student; | ||
} | ||
|
||
@Override | ||
public boolean isExit() { | ||
return false; | ||
} | ||
} |
6 changes: 3 additions & 3 deletions
6
src/main/java/TutorLink/course/Course.java → .../java/tutorlink/coursepackage/Course.java
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
File renamed without changes.
6 changes: 2 additions & 4 deletions
6
...n/java/TutorLink/list/AssignmentList.java → ...tutorlink/listpackage/AssignmentList.java
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
5 changes: 2 additions & 3 deletions
5
...n/java/TutorLink/list/AttendanceList.java → ...tutorlink/listpackage/AttendanceList.java
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
6 changes: 3 additions & 3 deletions
6
src/main/java/TutorLink/list/CourseList.java → ...ava/tutorlink/listpackage/CourseList.java
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package TutorLink.listpackage; | ||
|
||
public class ItemList { | ||
} |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package TutorLink.listpackage; | ||
|
||
import TutorLink.studentpackage.StudentClass; | ||
|
||
import java.util.ArrayList; | ||
|
||
public class StudentList extends ItemList { | ||
private ArrayList<StudentClass> studentArrayList; | ||
|
||
public StudentList() { | ||
this.studentArrayList = new ArrayList<>(); | ||
} | ||
|
||
public void deleteStudent(StudentClass student) { | ||
studentArrayList.remove(student); | ||
} | ||
|
||
public void addStudent(StudentClass student) { | ||
studentArrayList.add(student); | ||
} | ||
|
||
public int getNumberOfStudents() { | ||
return studentArrayList.size(); | ||
} | ||
|
||
public ArrayList<StudentClass> getStudentArrayList() { | ||
return studentArrayList; | ||
} | ||
} |
Oops, something went wrong.