7.2.9 Teacher Class List Methods Site
[3] R. Garcia, "Teacher dashboard usability: A longitudinal study," in Proc. ACM Conf. on Human Factors in Computing Systems (CHI) , 2022, pp. 112–124.
[4] ESIS Working Group, Educational Software Interface Standard (ESIS 2024) , Section 7.2.9 – Teacher Class List Methods, 2024. @Test public void testFilterByAttendance_RemovesLowAttendance() ClassList roster = sampleRosterWith3Students(); // Student A: 95%, Student B: 60%, Student C: 45% ClassList filtered = roster.filterByAttendance(roster, 70); assertEquals(1, filtered.size()); assertEquals("Student A", filtered.get(0).name); 7.2.9 Teacher Class List Methods
function sortByPerformance(c, comp): // In-place merge sort for stability and O(n log n) worst-case c.students = mergeSort(c.students, comp) c.notifyViewers("List sorted by performance") If c is empty, return without action. If comp is null, use default compareByGradeDesc() . 3.2.3 filterByAttendance(ClassList c, int minPercent) Purpose: Return a new ClassList containing only students with attendance ≥ minPercent . The original list remains unchanged (immutability pattern). on Human Factors in Computing Systems (CHI) , 2022, pp
interface PerformanceComparator extends Comparator<Student> {} class GradeComparator implements PerformanceComparator int compare(Student a, Student b) return Double.compare(b.gradeAverage, a.gradeAverage); we recommend the following design choices:
function filterByAttendance(c, minPercent): filtered = new ClassList(c.courseId) for student in c.students: if student.attendanceRate * 100 >= minPercent: filtered.add(student) return filtered If minPercent < 0 or > 100 , clamp to [0,100] and log a warning. 3.2.4 exportToParentPortal(ClassList c, Set<Parent> contacts) Purpose: For each student, securely share the student’s current progress report with associated parents via the portal API. Implements the Observer pattern to avoid tight coupling.
function exportToParentPortal(c, contacts): for student in c.students: parentSet = getParentsForStudent(student, contacts) payload = encrypt(createProgressPayload(student)) for parent in parentSet: portalAPI.send(parent.portalId, payload) logExportEvent(c.courseId, timestamp()) All data transmitted over TLS 1.3, and parent identities are verified via two-factor authentication before receiving access. 4. Implementation and Design Patterns To satisfy Section 7.2.9, we recommend the following design choices: