Initial commit

This commit is contained in:
github-classroom[bot]
2025-09-19 06:50:22 +00:00
committed by GitHub
commit 6fcb7c47dd
12 changed files with 636 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
package appointmentplanner;
/*
* Copyright (c) 2019 Informatics Fontys FHTenL University of Applied Science Venlo
*/
import appointmentplanner.api.*;
import java.time.Duration;
import java.time.Instant;
import java.time.LocalTime;
/**
* Abstract factory to separate student implementations from teachers tests. The
* instance created by this factory will be black-box tested by the teachers
* tests.
*
* Richard van den Ham {@code r.vandenham@fontys.nl}
* Pieter van den Hombergh {@code p.vandenhombergh@fontys.nl}
*/
public class APFactory implements AbstractAPFactory {
/**
* Creates a factory.
*/
public APFactory() {
}
@Override
public LocalDayPlan createLocalDayPlan(LocalDay day, Instant start, Instant end) {
//TODO Return an instance of your class that implements LocalDayPlan
return null;
}
@Override
public AppointmentData createAppointmentData(String description, Duration duration) {
//TODO Return an instance of your class that implements AppointmentData
return null;
}
@Override
public AppointmentRequest createAppointmentRequest(AppointmentData appData, LocalTime prefStart, TimePreference fallBack) {
//TODO Return an instance of your class that implements AppointmentRequest
return null;
}
}

View File

@@ -0,0 +1,9 @@
/**
* Module containing the appointment planner
* Provides the API with the concrete factory
*/
module appointmentplanner {
requires appointmenplanner.api;
provides appointmentplanner.api.AbstractAPFactory with appointmentplanner.APFactory;
uses appointmentplanner.api.AbstractAPFactory; // in tests
}

View File

@@ -0,0 +1 @@
appointmentplanner.APFactory