Initial commit
This commit is contained in:
46
assignment/src/main/java/appointmentplanner/APFactory.java
Normal file
46
assignment/src/main/java/appointmentplanner/APFactory.java
Normal 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;
|
||||
}
|
||||
}
|
||||
9
assignment/src/main/java/module-info.java
Normal file
9
assignment/src/main/java/module-info.java
Normal 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
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
appointmentplanner.APFactory
|
||||
Reference in New Issue
Block a user